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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1534
RA = 130.222, Dec = 13.2871
tmin = 636940801, tmax = 637200001
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='615686', job_status='RUN', time_executed='2021-08-30 03:34:32.829205', time_epoch_executed='1630319672.83' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/615686/ft1_4FGL_J0840.8+1317_daily_bin1534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615686/ft1_4FGL_J0840.8+1317_daily_bin1534.fits outfile=/scratch/kocevski/615686/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1534.fits ra=130.222 dec=13.2871 rad=12.0 tmin=636940801.0 tmax=637200001.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 8.68
user 5.11
sys 2.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.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/615686/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1534.fits evtable="EVENTS" outfile="/scratch/kocevski/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.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 3.82
user 0.36
sys 3.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.fits" evtable="EVENTS" scfile=/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits sctable="SC_DATA" outfile=/scratch/kocevski/615686/ltcube_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.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/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits
.....................!
real 17.32
user 13.24
sys 3.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.fits evtable="EVENTS" scfile=/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits sctable="SC_DATA" expcube=/scratch/kocevski/615686/ltcube_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.fits outfile=/scratch/kocevski/615686/expmap_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.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/615686/ltcube_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.fits
.....................!
real 203.31
user 187.28
sys 9.19

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/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.fits scfile=/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits outfile=/scratch/kocevski/615686/cmap_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.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 3.62
user 0.38
sys 3.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.fits scfile=/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits outfile=/scratch/kocevski/615686/cmap_HighResolution_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.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 4.02
user 0.40
sys 3.08

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.fits', '/scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits', expMap='/scratch/kocevski/615686/expmap_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.fits', expCube='/scratch/kocevski/615686/ltcube_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/615686/Model_4FGL_J0840.8+1317_daily_bin1534.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/615686/ft1_filtered_4FGL_J0840.8+1317_daily_bin1534.fits
Spacecraft file(s): /scratch/kocevski/615686/ft2_4FGL_J0840.8+1317_daily_bin1534.fits
Exposure map: /scratch/kocevski/615686/expmap_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.fits
Exposure cube: /scratch/kocevski/615686/ltcube_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/615686/Model_4FGL_J0840.8+1317_daily_bin1534.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) = 4607.83573894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    187.73       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11244E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .30265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0579       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87429       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=   4607.831     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1603 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5362        12.689        .53288E-05   -.99166E-04
   2  Prefactor     .10000E-03    50.711        .49307E-05** at limit **
   3  norm          187.71        154.03        .26304E-05    .45141E-04
   4  norm          .10000E-03    42.263       -.21913E-05** at limit **
   5  Prefactor     44.761        45.032       -.43065E-06    .18405E-04
   6  Prefactor     .10000E-03    13.913        .23285E-06** at limit **
   7  norm          .10000E-03    1.0591       -.58490E-07** at limit **
   8  norm          .30234        .75349        .91296E-08   -.22338E-03
   9  Prefactor     8.4272        8.6577        .12750E-06    .55789E-04
  10  Prefactor     .10000E-03    4.7286       -.38386E-07** at limit **
  11  Prefactor     .10000E-03    22.383        .15530E-05** at limit **
  12  norm          .10000E-03    .63958       -.26689E-07** at limit **
  13  Prefactor     .10000E-03    18.054       -.85589E-06** at limit **
  14  norm          .10000E-03    2.6794       -.10183E-07** at limit **
  15  norm          .10000E-03    43.513       -.21291E-05** at limit **
  16  Normalizat    1.0578        .20049       -.26361E-06    .81691E-04
  17  Prefactor     .87449        .15954        .99543E-07    .13519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53618
  Prefactor  = 0.000100003
  norm       = 187.712
  norm       = 0.0001
  Prefactor  = 44.7605
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.302344
  Prefactor  = 8.42723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.05777
  Prefactor  = 0.874495
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.831     FROM HESSE     STATUS=OK           221 CALLS     1824 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5362        12.876        .12817E-02   -1.5389    
   2  Prefactor     .10000E-03    51.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          187.71        154.39        .14736E-03   -1.2959    
   4  norm          .10000E-03    42.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.761        45.009        .59928E-04   -1.4369    
   6  Prefactor     .10000E-03    14.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1357        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .30234        .66185        .89239E-03   -1.5598    
   9  Prefactor     8.4272        8.5993        .13814E-03   -1.5127    
  10  Prefactor     .10000E-03    4.7532        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7997        .10436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6810        .10852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    43.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0578        .23159        .24285E-03   -.91119    
  17  Prefactor     .87449        .18604        .21433E-03   -.97038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73279e-09
Minuit parameter uncertainties:
  1  11.4327
  2  0.000773625
  3  154.727
  4  0.000182934
  5  45.0429
  6  2.55551e-05
  7  8.19714e-07
  8  0.661866
  9  8.60058
  10  4.36284e-06
  11  0.000154341
  12  3.14589e-06
  13  6.80017e-05
  14  5.10654e-07
  15  0.000295119
  16  0.231807
  17  0.186174
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.543e-04  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.745e-01  1.862e-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.058e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615686/likelihoodResults_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4607.83135229
delta logL = -0.000212033496609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4607.83114053
delta logL = -2.71332282864e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4054       1.0000          .0000       10.000    
     3 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87450       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=   4607.831     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1550.0        .90712E-02** at limit **
   2  Index         2.4332        6.3967        .50000       -.12719E-04
   3  Normalizat    1.0578        .49413E-01    .40064E-01    .17336E-04
   4  Prefactor     .87449        .40227E-01    .44679E-01    .43623E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43324
  Normalizat = 1.05777
  Prefactor  = 0.874494
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.831     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7027.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4332        6.4234        .50000       -.53909    
   3  Normalizat    1.0578        .15647        .24285E-03   -.91119    
   4  Prefactor     .87449        .12740        .21433E-03   -.97038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.57081e-08
Minuit parameter uncertainties:
  1  0.000835961
  2  65.3285
  3  0.156534
  4  0.12744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615686': 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): 102
logL (Free Index) = 4607.83114045
delta logL = -1.88420926861e-07

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.360e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.433e+00  6.533e+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.745e-01  1.274e-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.058e+00  1.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 130.222 13.287

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/615686/cmap_HighResolution_636940801_637200001_4FGL_J0840.8+1317_daily_bin1534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-08-30 03:43:53.705505', job_id='615686', GAL2='0.87', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630320233.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1534' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:43:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 615686: <4FGL_J0840.8+1317_daily_bin1534> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1534> 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) <bullet0209>, 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:43:54 2021
Results reported at Mon Aug 30 03:43:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1534 130.222 13.2871 636940801 637200001 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 :                                   577.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

