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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin350
RA = 127.973, Dec = 4.4941
tmin = 330048001, tmax = 330307201
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='520637', job_status='RUN', time_executed='2021-08-29 22:44:56.990015', time_epoch_executed='1630302296.99' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520637/ft1_4FGL_J0831.8+0429_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520637/ft1_4FGL_J0831.8+0429_daily_bin350.fits outfile=/scratch/kocevski/520637/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin350.fits ra=127.973 dec=4.4941 rad=12.0 tmin=330048001.0 tmax=330307201.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 10.83
user 3.21
sys 7.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.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/520637/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.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 7.89
user 0.34
sys 7.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/520637/ltcube_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.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/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits
.....................!
real 20.59
user 11.92
sys 8.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/520637/ltcube_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.fits outfile=/scratch/kocevski/520637/expmap_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.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/520637/ltcube_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.fits
.....................!
real 203.54
user 185.30
sys 16.40

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0831.8+0429 @ 127.973 4.4941

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits scfile=/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits outfile=/scratch/kocevski/520637/cmap_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.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=127.973 yref=4.4941 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 7.84
user 0.37
sys 7.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits scfile=/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits outfile=/scratch/kocevski/520637/cmap_HighResolution_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.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=127.973 yref=4.4941 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 7.77
user 0.39
sys 7.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520637/Model_4FGL_J0831.8+0429_daily_bin350.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/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits.....................!
real 77.85
user 67.01
sys 10.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits', '/scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits', expMap='/scratch/kocevski/520637/expmap_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.fits', expCube='/scratch/kocevski/520637/ltcube_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520637/Model_4FGL_J0831.8+0429_daily_bin350.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0831.8+0429'

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.397e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.181e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  7.610e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  5.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/520637/ft1_filtered_4FGL_J0831.8+0429_daily_bin350.fits
Spacecraft file(s): /scratch/kocevski/520637/ft2_4FGL_J0831.8+0429_daily_bin350.fits
Exposure map: /scratch/kocevski/520637/expmap_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.fits
Exposure cube: /scratch/kocevski/520637/ltcube_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520637/Model_4FGL_J0831.8+0429_daily_bin350.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) = 6501.94262025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.433       1.0000         .10000E-03   10000.    
     6 'norm      '    10.286       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9321       1.0000         .10000E-03   10000.    
     8 'norm      '    31.930       1.0000         .10000E-03   10000.    
     9 'norm      '    9.5015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14945E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0859       1.0000         .10000E-03   10000.    
    12 'norm      '    .84029       1.0000         .10000E-03   10000.    
    13 'norm      '    .71649E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18065E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.575       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .30466       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4591       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6501.928     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1793 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.980        24.340        .53373E-06   -.77154E-04
   2  Prefactor     .10000E-03    9.1431       -.39550E-08** at limit **
   3  Prefactor     .10000E-03    47.725        .27332E-04** at limit **
   4  Prefactor     .10000E-03    6.0622       -.61877E-07** at limit **
   5  Prefactor     61.380        50.052       -.44318E-04   -.65387E-04
   6  norm          10.291        12.920        .31046E-05   -.18113E-03
   7  norm          2.9327        2.7817       -.24726E-06   -.37155E-03
   8  norm          31.919        29.109        .12246E-04    .95469E-05
   9  norm          9.5021        4.6991        .73072E-06   -.19048E-03
  10  Prefactor     .10000E-03    42.725       -.19757E-04** at limit **
  11  Prefactor     6.0704        15.368       -.23294E-05   -.85538E-04
  12  norm          .84023        .78571       -.14121E-06   -.74056E-03
  13  norm          .10001E-03    6.3359       -.10749E-05** at limit **
  14  Prefactor     .10000E-03    72.706       -.48401E-05** at limit **
  15  norm          .10000E-03    1.9844       -.19818E-06** at limit **
  16  norm          11.575        7.4123       -.92756E-06   -.86888E-04
  17  Normalizat    .30471        .23850        .20107E-04    .30002E-03
  18  Prefactor     1.4591        .18743       -.40929E-05    .69007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.9795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.3803
  norm       = 10.2913
  norm       = 2.93274
  norm       = 31.9188
  norm       = 9.50209
  Prefactor  = 0.000100001
  Prefactor  = 6.07042
  norm       = 0.840232
  norm       = 0.00010001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 11.5747
  Normalizat = 0.304712
  Prefactor  = 1.45906
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.928     FROM HESSE     STATUS=OK           248 CALLS     2041 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.980        24.271        .63393E-04   -1.4443    
   2  Prefactor     .10000E-03    9.1637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     61.380        50.051        .51193E-04   -1.4139    
   6  norm          10.291        12.866        .12494E-03   -1.5066    
   7  norm          2.9327        2.7757        .12703E-03   -1.5365    
   8  norm          31.919        29.058        .70911E-04   -1.4577    
   9  norm          9.5021        4.6937        .11673E-03   -1.5091    
  10  Prefactor     .10000E-03    42.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0704        15.158        .16275E-03   -1.5215    
  12  norm          .84023        .75562        .66129E-03   -1.5525    
  13  norm          .10001E-03    19.655        .38540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    73.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0172        .11082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.575        7.3955        .11775E-03   -1.5027    
  17  Normalizat    .30471        .22047        .46535E-03   -1.2256    
  18  Prefactor     1.4591        .17819        .18494E-03   -.78693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3159e-09
Minuit parameter uncertainties:
  1  24.2766
  2  6.88544e-06
  3  1.18422e-05
  4  3.59636e-05
  5  50.0851
  6  12.8695
  7  2.77584
  8  29.0707
  9  4.69389
  10  0.000375583
  11  15.1675
  12  0.755624
  13  0.000877152
  14  0.000784168
  15  2.77565e-05
  16  7.39608
  17  0.221105
  18  0.178262
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  8.402e-01  7.556e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.181e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  7.610e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  5.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.459e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  3.047e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.07e-05

TS (Fixed Index): 2.47
Ra Dec: 127.973 4.494
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520637/likelihoodResults_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.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) = 6501.88320638
delta logL = 0.0449942860068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6501.88271455
delta logL = 0.0454861127628

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6501.883     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83519        37.782        .12570E-01    .33715E-03
   2  alpha         1.9757        3.1465        .42356       -.13375E-04
   3  Normalizat    .30997        .13813        .10419        .66178E-04
   4  Prefactor     1.4567        .14051        .30320E-01   -.76544E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.835188
  alpha      = 1.97566
  Normalizat = 0.309975
  Prefactor  = 1.45674
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.883     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83519        .76607        .66609E-03   -1.5525    
   2  alpha         1.9757        .65901        .17614E-01   -.21130    
   3  Normalizat    .30997        .21093        .46144E-03   -1.2225    
   4  Prefactor     1.4567        .17548        .18506E-03   -.78759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0315e-10
Minuit parameter uncertainties:
  1  0.766076
  2  0.667271
  3  0.211468
  4  0.175554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520637': 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) = 6501.88271418
delta logL = 0.0454864830617

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  8.352e-01  7.661e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.976e+00  6.673e-01  0.000e+00  5.000e+00 ( 1.000e+00)
308         beta:  7.610e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  5.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.457e+00  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  3.100e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 127.973 4.494
Photon Index (Free Index): 1.98 +/- 0.67
Photon Flux (Free Index): 2.50e-08 +/- 2.76e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.43e-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/520637/cmap_HighResolution_330048001_330307201_4FGL_J0831.8+0429_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='1.37e-05', photon_flux_error='2.67e-08', dlogl='4.55e-02', energy_flux='1.19e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-08-29 22:55:58.570467', photon_index_error2='0.67', photon_index2='1.98', ts='2.47', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='1.43e-05', EG='0.30', time_epoch_completed='1630302958.57', return_code='0', job_id='520637', GAL2='1.46', EG2='0.31', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.76e-08', ts2='2.55', photon_index='2.18' WHERE bin_id='350' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 520637: <4FGL_J0831.8+0429_daily_bin350> in cluster <slac> Done

Job <4FGL_J0831.8+0429_daily_bin350> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 22:40:29 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 22:40:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 22:40:32 2021
Terminated at Sun Aug 29 22:56:00 2021
Results reported at Sun Aug 29 22:56:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin350 127.973 4.4941 330048001 330307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0831.8+0429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            931 sec.

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

