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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1538
RA = 130.222, Dec = 13.2871
tmin = 637977601, tmax = 638236801
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='615692', job_status='RUN', time_executed='2021-08-30 03:31:18.821002', time_epoch_executed='1630319478.82' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1538'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/615692/ft1_4FGL_J0840.8+1317_daily_bin1538.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615692/ft1_4FGL_J0840.8+1317_daily_bin1538.fits outfile=/scratch/kocevski/615692/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1538.fits ra=130.222 dec=13.2871 rad=12.0 tmin=637977601.0 tmax=638236801.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.14
user 3.43
sys 0.55

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.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/615692/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1538.fits evtable="EVENTS" outfile="/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.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.09
user 0.30
sys 0.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits" evtable="EVENTS" scfile=/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits sctable="SC_DATA" outfile=/scratch/kocevski/615692/ltcube_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.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/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits
.....................!
real 12.32
user 11.49
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits evtable="EVENTS" scfile=/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits sctable="SC_DATA" expcube=/scratch/kocevski/615692/ltcube_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.fits outfile=/scratch/kocevski/615692/expmap_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.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/615692/ltcube_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.fits
.....................!
real 192.43
user 185.00
sys 6.35

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

Setting source of interest to:
4FGL J0840.8+1317 @ 130.222 13.2871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits scfile=/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits outfile=/scratch/kocevski/615692/cmap_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.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=130.222 yref=13.2871 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.22
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits scfile=/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits outfile=/scratch/kocevski/615692/cmap_HighResolution_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.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=130.222 yref=13.2871 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.59
user 0.36
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits evtable="EVENTS" scfile=/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/615692/Model_4FGL_J0840.8+1317_daily_bin1538.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/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits.....................!
real 68.82
user 61.84
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits', '/scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits', expMap='/scratch/kocevski/615692/expmap_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.fits', expCube='/scratch/kocevski/615692/ltcube_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/615692/Model_4FGL_J0840.8+1317_daily_bin1538.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0840.8+1317'

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  5.096e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/615692/ft1_filtered_4FGL_J0840.8+1317_daily_bin1538.fits
Spacecraft file(s): /scratch/kocevski/615692/ft2_4FGL_J0840.8+1317_daily_bin1538.fits
Exposure map: /scratch/kocevski/615692/expmap_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.fits
Exposure cube: /scratch/kocevski/615692/ltcube_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/615692/Model_4FGL_J0840.8+1317_daily_bin1538.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) = 5905.07016983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.655       1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5999       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5886       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.908       1.0000         .10000E-03   10000.    
    12 'norm      '    .69431       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.491       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5905.067     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1560 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2575       -.10601E-06** at limit **
   2  Prefactor     43.499        92.488        .16252E-04    .41413E-05
   3  norm          .10000E-03    81.978       -.76887E-08** at limit **
   4  norm          .10000E-03    4.9232       -.13500E-07** at limit **
   5  Prefactor     .10000E-03    18.929       -.14730E-06** at limit **
   6  Prefactor     1.5955        21.531        .49059E-05   -.58582E-05
   7  norm          .10000E-03    .27594        .11055E-06** at limit **
   8  norm          1.2844        .93703        .50734E-07   -.86882E-04
   9  Prefactor     2.2120        8.0007        .62889E-05   -.23731E-04
  10  Prefactor     9.5885        9.4965        .31393E-06   -.17943E-04
  11  Prefactor     26.907        25.693        .50428E-06   -.14532E-04
  12  norm          .69474        .54552        .11140E-07   -.13922E-03
  13  Prefactor     .10000E-03    4.3573        .32365E-07** at limit **
  14  norm          .10000E-03    3.3004        .20199E-07** at limit **
  15  norm          24.243        50.528       -.24531E-07   -.34669E-05
  16  Normalizat    1.0386        .18791       -.20029E-05   -.66115E-04
  17  Prefactor     .88958        .14842        .57123E-07   -.12256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.4992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59549
  norm       = 0.0001
  norm       = 1.28444
  Prefactor  = 2.21198
  Prefactor  = 9.58853
  Prefactor  = 26.9068
  norm       = 0.694741
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.2427
  Normalizat = 1.03865
  Prefactor  = 0.889576
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.067     FROM HESSE     STATUS=OK           227 CALLS     1787 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2679        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.499        92.553        .30338E-03   -1.4388    
   3  norm          .10000E-03    82.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.9250        .16653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5955        21.680        .33519E-03   -1.5455    
   7  norm          .10000E-03    .27713        .39430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2844        .91925        .60877E-04   -1.5481    
   9  Prefactor     2.2120        8.0091        .13830E-02   -1.5411    
  10  Prefactor     9.5885        9.5105        .12942E-03   -1.5089    
  11  Prefactor     26.907        25.703        .77229E-04   -1.4670    
  12  norm          .69474        .56016        .48313E-03   -1.5541    
  13  Prefactor     .10000E-03    4.3635        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3223        .13634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.243        50.509        .80944E-04   -1.4723    
  16  Normalizat    1.0386        .22012        .24878E-03   -.91747    
  17  Prefactor     .88958        .17484        .21789E-03   -.96506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43654e-10
Minuit parameter uncertainties:
  1  5.66354e-06
  2  92.8611
  3  2.3442e-05
  4  6.58966e-08
  5  1.41216e-05
  6  11.7675
  7  3.47787e-07
  8  0.919262
  9  8.013
  10  9.51203
  11  25.7135
  12  0.560166
  13  2.91813e-06
  14  2.66587e-06
  15  50.598
  16  0.220314
  17  0.17495
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  2.691e+01  2.571e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.896e-01  1.749e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.039e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 130.222 13.287
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 9.42e-06 +/- 9.00e-06

TS (Fixed Index): 2.88
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615692/likelihoodResults_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.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) = 5904.70223746
delta logL = 0.364285353721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5904.69650458
delta logL = 0.370018232745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.441       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8685       1.0000          .0000       10.000    
     3 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5904.697     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      224 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.441        39.038        .18460E-02    .62394E-03
   2  Index         1.8686        .68616        .26605       -.26315E-04
   3  Normalizat    1.0563        .18160        .40163E-01    .90407E-05
   4  Prefactor     .88150        .14843        .44771E-01    .92570E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4412
  Index      = 1.86858
  Normalizat = 1.05633
  Prefactor  = 0.8815
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.697     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.441        31.166        .73839E-04   -1.4622    
   2  Index         1.8686        .69303        .98513E-02   -.67678    
   3  Normalizat    1.0563        .21194        .24692E-03   -.91167    
   4  Prefactor     .88150        .17368        .21875E-03   -.96791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18352e-09
Minuit parameter uncertainties:
  1  31.1831
  2  0.696734
  3  0.212106
  4  0.173788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615692': 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) = 5904.69650421
delta logL = 0.370018602723

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  2.944e+01  3.118e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.869e+00  6.967e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.815e-01  1.738e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.056e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 130.222 13.287
Photon Index (Free Index): 1.87 +/- 0.70
Photon Flux (Free Index): 1.65e-08 +/- 2.35e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.22e-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/615692/cmap_HighResolution_637977601_638236801_4FGL_J0840.8+1317_daily_bin1538.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='1.61e-05', photon_flux_error='3.08e-08', dlogl='3.70e-01', energy_flux='9.42e-06', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-08-30 03:42:18.397035', photon_index_error2='0.70', photon_index2='1.87', ts='2.88', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.22e-05', EG='1.04', time_epoch_completed='1630320138.4', return_code='0', job_id='615692', GAL2='0.88', EG2='1.06', return_code2='0', energy_flux_error='9.00e-06', photon_flux_error2='2.35e-08', ts2='3.63', photon_index='2.49' WHERE bin_id='1538' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:42:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 615692: <4FGL_J0840.8+1317_daily_bin1538> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1538> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 03:30:49 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:30:50 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:30:50 2021
Terminated at Mon Aug 30 03:42:19 2021
Results reported at Mon Aug 30 03:42:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1538 130.222 13.2871 637977601 638236801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0840.8+1317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   516.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

