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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1423
RA = 130.222, Dec = 13.2871
tmin = 608169601, tmax = 608428801
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='614504', job_status='RUN', time_executed='2021-08-30 03:31:13.145345', time_epoch_executed='1630319473.15' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614504/ft1_4FGL_J0840.8+1317_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614504/ft1_4FGL_J0840.8+1317_daily_bin1423.fits outfile=/scratch/kocevski/614504/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1423.fits ra=130.222 dec=13.2871 rad=12.0 tmin=608169601.0 tmax=608428801.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 7.04
user 3.50
sys 3.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.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/614504/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1423.fits evtable="EVENTS" outfile="/scratch/kocevski/614504/ft1_filtered_4FGL_J0840.8+1317_daily_bin1423.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 4.18
user 0.33
sys 3.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614504/ft1_filtered_4FGL_J0840.8+1317_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/614504/ltcube_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.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/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.fits
.....................!
real 16.17
user 11.75
sys 3.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614504/ft1_filtered_4FGL_J0840.8+1317_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/614504/ltcube_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.fits outfile=/scratch/kocevski/614504/expmap_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.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/614504/ltcube_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.fits
.....................!
real 195.17
user 185.25
sys 8.42

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/614504/ft1_filtered_4FGL_J0840.8+1317_daily_bin1423.fits scfile=/scratch/kocevski/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.fits outfile=/scratch/kocevski/614504/cmap_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.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 5.65
user 0.36
sys 3.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614504/ft1_filtered_4FGL_J0840.8+1317_daily_bin1423.fits scfile=/scratch/kocevski/614504/ft2_4FGL_J0840.8+1317_daily_bin1423.fits outfile=/scratch/kocevski/614504/cmap_HighResolution_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.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.45
user 0.37
sys 3.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.127       1.0000         .10000E-03   10000.    
     3 'norm      '    .11004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .66567       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.300       1.0000         .10000E-03   10000.    
    14 'norm      '    .10714E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0202       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1009       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=   5672.367     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1614 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5412        11.626        .35633E-06   -.14450E-03
   2  Prefactor     20.079        171.00       -.10333E-03    .27223E-05
   3  norm          .10000E-03    24.296       -.16245E-04** at limit **
   4  norm          .10000E-03    14.343       -.26235E-05** at limit **
   5  Prefactor     .10000E-03    7.9574        .76975E-05** at limit **
   6  Prefactor     .10000E-03    6.8869       -.52750E-05** at limit **
   7  norm          .10000E-03    .52317       -.19011E-07** at limit **
   8  norm          1.6126        .90301       -.19542E-07    .45887E-04
   9  Prefactor     .10000E-03    6.0030        .14282E-05** at limit **
  10  Prefactor     .10000E-03    2.3003        .11326E-06** at limit **
  11  Prefactor     .10000E-03    12.337       -.10706E-04** at limit **
  12  norm          .66552        .60016        .12871E-06   -.22207E-03
  13  Prefactor     20.293        14.113       -.24998E-05   -.68955E-04
  14  norm          .10021E-03    4.9824        .30219E-05** at limit **
  15  norm          .10000E-03    17.987        .11903E-04** at limit **
  16  Normalizat    1.0203        .19396        .17711E-05   -.90994E-04
  17  Prefactor     1.1009        .16733        .53146E-06   -.95170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54116
  Prefactor  = 20.0793
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.6126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.665521
  Prefactor  = 20.2929
  norm       = 0.000100212
  norm       = 0.0001
  Normalizat = 1.02027
  Prefactor  = 1.10092
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.367     FROM HESSE     STATUS=OK           219 CALLS     1833 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5412        11.601        .25568E-03   -1.5389    
   2  Prefactor     20.079        171.25        .89279E-04   -1.4811    
   3  norm          .10000E-03    24.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .53780        .10627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6126        .90468        .51981E-04   -1.5454    
   9  Prefactor     .10000E-03    6.0735        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3090        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .66552        .58770        .51775E-04   -1.5545    
  13  Prefactor     20.293        14.034        .88897E-04   -1.4807    
  14  norm          .10021E-03    18.167        .32292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0203        .22522        .25823E-03   -.92354    
  17  Prefactor     1.1009        .19486        .21650E-03   -.89437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14775e-08
Minuit parameter uncertainties:
  1  10.8623
  2  117.735
  3  7.94927e-07
  4  1.12432e-05
  5  1.84422e-06
  6  2.76221e-07
  7  3.08968e-06
  8  0.904684
  9  2.59921e-05
  10  4.64789e-06
  11  1.08412e-05
  12  0.587707
  13  14.0358
  14  0.00392522
  15  7.11021e-06
  16  0.225435
  17  0.19499
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.084e-05  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:  1.101e+00  1.950e-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.020e+00  2.254e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614504/likelihoodResults_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.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) = 5672.36739463
delta logL = -0.000385343804737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5672.36700927
delta logL = 1.65664459928e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4832       1.0000          .0000       10.000    
     3 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1009       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5672.367     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10146E-03    283.13        .18142E-02** at limit **
   2  Index         2.3939        8.6532        .50000        .59608E-05
   3  Normalizat    1.0203        .22772E-01    .25822E-03   -.21529E-04
   4  Prefactor     1.1009        .19847E-01    .21650E-03    .57761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101457
  Index      = 2.39394
  Normalizat = 1.02027
  Prefactor  = 1.10093
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.367     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10146E-03    1084.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3939        7.8555        .50000       -.54827    
   3  Normalizat    1.0203        .49448E-01    .10329E-04   -.92354    
   4  Prefactor     1.1009        .43095E-01    .86602E-05   -.89437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.66871e-08
Minuit parameter uncertainties:
  1  0.0809908
  2  2166.51
  3  0.0494506
  4  0.0430965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614504': 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) = 5672.36700918
delta logL = 1.0643452697e-07

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.015e-04  8.099e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.394e+00  2.167e+03  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:  1.101e+00  4.310e-02  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.020e+00  4.945e-02  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/614504/cmap_HighResolution_608169601_608428801_4FGL_J0840.8+1317_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-08-30 03:42:59.519430', job_id='614504', GAL2='1.10', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630320179.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1423' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:42:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 614504: <4FGL_J0840.8+1317_daily_bin1423> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1423> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 03:26:25 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:26:25 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:26:25 2021
Terminated at Mon Aug 30 03:43:01 2021
Results reported at Mon Aug 30 03:43:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1423 130.222 13.2871 608169601 608428801 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 :                                   604.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             246.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

