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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin856
RA = 129.963, Dec = 1.0877
tmin = 461203201, tmax = 461462401
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='604895', job_status='RUN', time_executed='2021-08-30 03:04:54.884828', time_epoch_executed='1630317894.88' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604895/ft1_4FGL_J0839.8+0105_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604895/ft2_4FGL_J0839.8+0105_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604895/ft1_4FGL_J0839.8+0105_daily_bin856.fits outfile=/scratch/kocevski/604895/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin856.fits ra=129.963 dec=1.0877 rad=12.0 tmin=461203201.0 tmax=461462401.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 3.45
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604895/ft2_4FGL_J0839.8+0105_daily_bin856.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/604895/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin856.fits evtable="EVENTS" outfile="/scratch/kocevski/604895/ft1_filtered_4FGL_J0839.8+0105_daily_bin856.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.56
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604895/ft1_filtered_4FGL_J0839.8+0105_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/604895/ft2_4FGL_J0839.8+0105_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/604895/ltcube_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.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/604895/ft2_4FGL_J0839.8+0105_daily_bin856.fits
.....................!
real 11.97
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604895/ft1_filtered_4FGL_J0839.8+0105_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/604895/ft2_4FGL_J0839.8+0105_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/604895/ltcube_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.fits outfile=/scratch/kocevski/604895/expmap_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.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/604895/ltcube_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.fits
.....................!
real 191.09
user 185.79
sys 4.81

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/604895/ft1_filtered_4FGL_J0839.8+0105_daily_bin856.fits scfile=/scratch/kocevski/604895/ft2_4FGL_J0839.8+0105_daily_bin856.fits outfile=/scratch/kocevski/604895/cmap_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604895/ft1_filtered_4FGL_J0839.8+0105_daily_bin856.fits scfile=/scratch/kocevski/604895/ft2_4FGL_J0839.8+0105_daily_bin856.fits outfile=/scratch/kocevski/604895/cmap_HighResolution_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.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.77
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1279       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0082       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7437       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8502       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.975       1.0000         .10000E-03   10000.    
    14 'norm      '    27.919       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8843       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16147E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3012       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77172       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=   5295.497     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1867 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.120        11.375        .13161E-06   -.30955E-03
   2  Prefactor     .10000E-03    9.2570       -.73504E-06** at limit **
   3  norm          .10000E-03    3.2128       -.10731E-06** at limit **
   4  norm          .10000E-03    1.0316        .12565E-06** at limit **
   5  norm          .10000E-03    .37609        .17991E-06** at limit **
   6  norm          .10000E-03    15.050       -.67142E-05** at limit **
   7  norm          5.1281        4.3847       -.27254E-06   -.11354E-03
   8  Prefactor     .10000E-03    18.243        .45790E-05** at limit **
   9  norm          .10000E-03    12.297        .26135E-05** at limit **
  10  Prefactor     5.0063        15.255        .13000E-05   -.42366E-03
  11  norm          1.7437        1.1009        .42352E-07    .13018E-03
  12  norm          2.8501        3.8781        .88060E-06   -.15773E-02
  13  Prefactor     23.974        30.531       -.88344E-06   -.30399E-04
  14  norm          27.920        7.2500        .35791E-08    .30298E-04
  15  norm          8.8774        8.6414        .28634E-06   -.63469E-03
  16  Prefactor     .10000E-03    54.299       -.68878E-06** at limit **
  17  Prefactor     .10000E-03    3.2130        .21947E-06** at limit **
  18  Normalizat    1.3012        .22106        .75088E-06    .24346E-04
  19  Prefactor     .77173        .16171       -.49013E-06    .69625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1198
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 5.12814
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.00634
  norm       = 1.74371
  norm       = 2.85006
  Prefactor  = 23.9737
  norm       = 27.9203
  norm       = 8.87738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30119
  Prefactor  = 0.771728
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.497     FROM HESSE     STATUS=OK           272 CALLS     2139 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.120        11.428        .55292E-03   -1.4983    
   2  Prefactor     .10000E-03    9.2682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2162        .12738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7693        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .37796        .43585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1281        4.3885        .13604E-03   -1.5255    
   8  Prefactor     .10000E-03    18.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0063        17.089        .89846E-03   -1.5260    
  11  norm          1.7437        1.0985        .58034E-04   -1.5444    
  12  norm          2.8501        4.7077        .98950E-03   -1.5370    
  13  Prefactor     23.974        30.614        .81808E-04   -1.4728    
  14  norm          27.920        7.2566        .75821E-04   -1.4651    
  15  norm          8.8774        9.0027        .67236E-03   -1.5112    
  16  Prefactor     .10000E-03    54.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5532        .25216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3012        .26418        .25880E-03   -.83531    
  19  Prefactor     .77173        .19069        .24344E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98131e-09
Minuit parameter uncertainties:
  1  11.4303
  2  3.12223e-05
  3  2.95849e-06
  4  1.52342e-05
  5  1.32882e-06
  6  0.00037308
  7  4.38874
  8  0.000273346
  9  0.00012965
  10  17.1054
  11  1.09852
  12  4.70833
  13  30.6343
  14  7.25681
  15  9.00406
  16  0.000102742
  17  0.000114903
  18  0.264456
  19  0.190857
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.850e+00  4.708e+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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  7.717e-01  1.909e-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.301e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604895/likelihoodResults_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.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) = 5294.87610218
delta logL = 0.620864681876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5294.86695222
delta logL = 0.630014646069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4277       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94620       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76213       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=   5294.867     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      197 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4293        2.9440        .65664E-02   -.61429E-04
   2  alpha         .94638        .69861        .50000       -.27992E-04
   3  Normalizat    1.3153        .21398        .58245E-01    .46715E-05
   4  Prefactor     .76215        .16022        .43222E-01    .12896E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42934
  alpha      = 0.946384
  Normalizat = 1.31533
  Prefactor  = 0.762155
 **********
 **   18 **HESSE 
 **********

 FCN=   5294.867     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4293        3.7852        .13264E-03   -1.5396    
   2  alpha         .94638        .88931        .25614E-02   -.67059    
   3  Normalizat    1.3153        .25209        .25758E-03   -.83110    
   4  Prefactor     .76215        .18879        .24462E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76961e-13
Minuit parameter uncertainties:
  1  3.78554
  2  0.92311
  3  0.252326
  4  0.18895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604895': 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) = 5294.8669521
delta logL = 0.630014762435

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.429e+00  3.786e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  9.464e-01  9.231e-01  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:  7.622e-01  1.889e-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.315e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 129.963 1.088
Photon Index (Free Index): 0.95 +/- 0.92
Photon Flux (Free Index): 5.70e-09 +/- 7.56e-09
Energy Flux (Free Index): 1.61e-05 +/- 2.86e-05

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/604895/cmap_HighResolution_461203201_461462401_4FGL_J0839.8+0105_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='6.30e-01', photon_flux2='5.70e-09', job_status='DONE', time_completed='2021-08-30 03:13:36.008567', photon_index_error2='0.92', photon_index2='0.95', ts='0.61', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='2.86e-05', EG='1.30', time_epoch_completed='1630318416.01', return_code='0', job_id='604895', GAL2='0.76', EG2='1.32', return_code2='0', photon_flux_error2='7.56e-09', ts2='1.88', photon_index='2.24' WHERE bin_id='856' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 604895: <4FGL_J0839.8+0105_daily_bin856> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin856> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:37 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00: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 03:00:39 2021
Terminated at Mon Aug 30 03:13:36 2021
Results reported at Mon Aug 30 03:13:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin856 129.963 1.0877 461203201 461462401 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 :                                   514.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

