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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin682
RA = 195.12, Dec = 14.2701
tmin = 416102401, tmax = 416361601
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='99091', job_status='RUN', time_executed='2021-09-06 14:47:58.413409', time_epoch_executed='1630964878.41' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99091/ft1_4FGL_J1300.4+1416_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99091/ft1_4FGL_J1300.4+1416_daily_bin682.fits outfile=/scratch/kocevski/99091/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin682.fits ra=195.12 dec=14.2701 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.66
user 6.33
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.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/99091/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.62
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/99091/ltcube_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.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/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits
.....................!
real 19.12
user 18.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/99091/ltcube_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.fits outfile=/scratch/kocevski/99091/expmap_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.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/99091/ltcube_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.fits
.....................!
real 196.23
user 190.55
sys 4.89

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

Setting source of interest to:
4FGL J1300.4+1416 @ 195.12 14.2701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits scfile=/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits outfile=/scratch/kocevski/99091/cmap_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.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=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits scfile=/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits outfile=/scratch/kocevski/99091/cmap_HighResolution_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.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=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99091/Model_4FGL_J1300.4+1416_daily_bin682.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/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits.....................!
real 65.77
user 63.54
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits', '/scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits', expMap='/scratch/kocevski/99091/expmap_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.fits', expCube='/scratch/kocevski/99091/ltcube_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99091/Model_4FGL_J1300.4+1416_daily_bin682.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1300.4+1416'

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/99091/ft1_filtered_4FGL_J1300.4+1416_daily_bin682.fits
Spacecraft file(s): /scratch/kocevski/99091/ft2_4FGL_J1300.4+1416_daily_bin682.fits
Exposure map: /scratch/kocevski/99091/expmap_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.fits
Exposure cube: /scratch/kocevski/99091/ltcube_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99091/Model_4FGL_J1300.4+1416_daily_bin682.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) = 8011.95139495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8362       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.018       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    74.081       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.355       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.609       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.423       1.0000         .10000E-03   10000.    
    17 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0957       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0348       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8011.941     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2023 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2782        .83647E-08** at limit **
   2  Prefactor     .10000E-03    15.471        .36482E-06** at limit **
   3  norm          2.8362        .47272       -.46755E-10   -.91018E-04
   4  Prefactor     .10000E-03    54.420       -.89174E-06** at limit **
   5  Prefactor     12.020        10.918       -.10279E-05   -.98886E-03
   6  Prefactor     .10000E-03    19.491       -.77542E-06** at limit **
   7  norm          3.4372        1.8190       -.33564E-07   -.24922E-03
   8  Prefactor     74.096        60.166        .15335E-04    .80351E-05
   9  Prefactor     3.3323        5.2959        .27239E-05   -.39307E-03
  10  Prefactor     13.575        17.331       -.51430E-05   -.67788E-04
  11  Prefactor     20.356        12.542        .24040E-06   -.73555E-05
  12  norm          .10000E-03    .67411       -.21748E-07** at limit **
  13  norm          20.609        16.802       -.72546E-07   -.10236E-04
  14  norm          8.6932        5.8750        .90422E-06   -.13552E-03
  15  Prefactor     .10000E-03    3.6202        .39570E-07** at limit **
  16  Prefactor     11.417        24.876       -.48469E-05   -.12991E-04
  17  norm          .10000E-03    4.6119       -.15475E-06** at limit **
  18  Prefactor     .10000E-03    32.822        .11724E-05** at limit **
  19  Normalizat    1.0957        .18271       -.43309E-06   -.82357E-05
  20  Prefactor     1.0348        .15623       -.10715E-06   -.25937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83617
  Prefactor  = 0.0001
  Prefactor  = 12.0205
  Prefactor  = 0.0001
  norm       = 3.43715
  Prefactor  = 74.0962
  Prefactor  = 3.33234
  Prefactor  = 13.5749
  Prefactor  = 20.3564
  norm       = 0.0001
  norm       = 20.6086
  norm       = 8.69322
  Prefactor  = 0.0001
  Prefactor  = 11.4169
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09571
  Prefactor  = 1.0348
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.941     FROM HESSE     STATUS=OK           293 CALLS     2316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2859        .98814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8362        .47403        .24200E-04   -1.5371    
   4  Prefactor     .10000E-03    54.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.020        11.172        .57777E-03   -1.5014    
   6  Prefactor     .10000E-03    19.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4372        1.8171        .84926E-04   -1.5337    
   8  Prefactor     74.096        59.929        .46648E-04   -1.3984    
   9  Prefactor     3.3323        5.1942        .22173E-03   -1.5343    
  10  Prefactor     13.575        17.384        .10867E-03   -1.4971    
  11  Prefactor     20.356        12.547        .88777E-04   -1.4805    
  12  norm          .10000E-03    .67536        .71766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.609        16.801        .88228E-04   -1.4800    
  14  norm          8.6932        5.8519        .13593E-03   -1.5118    
  15  Prefactor     .10000E-03    3.6368        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.417        24.914        .11853E-03   -1.5032    
  17  norm          .10000E-03    4.6564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0957        .21580        .27973E-03   -.89890    
  20  Prefactor     1.0348        .18381        .25224E-03   -.91578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19694e-09
Minuit parameter uncertainties:
  1  8.90761e-07
  2  1.63024e-06
  3  0.474033
  4  6.88995e-07
  5  11.1741
  6  4.51171e-05
  7  1.81715
  8  59.9784
  9  5.19492
  10  17.3905
  11  12.5482
  12  7.76378e-07
  13  16.8049
  14  5.8523
  15  3.65473e-06
  16  24.9368
  17  3.2488e-05
  18  2.37505e-05
  19  0.215969
  20  0.183917
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.036e+01  1.255e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.035e+00  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.096e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.62
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.90e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 9.95e-06

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) = 8011.02895574
delta logL = 0.91214360511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8011.00256532
delta logL = 0.938534021035

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8011.003     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.384        11.322        .24004E-02   -.93386E-05
   2  Index         1.9808        .35889        .20938       -.74725E-04
   3  Normalizat    1.1369        .17557        .62244E-01    .13278E-04
   4  Prefactor     1.0138        .15453        .42804E-01    .11182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3836
  Index      = 1.98083
  Normalizat = 1.13687
  Prefactor  = 1.01384
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.003     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.384        13.883        .48009E-03   -1.4874    
   2  Index         1.9808        .51881        .78445E-02   -.64830    
   3  Normalizat    1.1369        .20730        .27532E-03   -.88577    
   4  Prefactor     1.0138        .18197        .25449E-03   -.92270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46079e-12
Minuit parameter uncertainties:
  1  13.8854
  2  0.520283
  3  0.20745
  4  0.18208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99091': 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) = 8011.00256442
delta logL = 0.938534923604

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.738e+01  1.389e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.981e+00  5.203e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.014e+00  1.821e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  1.137e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.48
Ra Dec: 195.120 14.270
Photon Index (Free Index): 1.98 +/- 0.52
Photon Flux (Free Index): 3.38e-08 +/- 3.26e-08
Energy Flux (Free Index): 2.45e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/99091/cmap_HighResolution_416102401_416361601_4FGL_J1300.4+1416_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.90e-08', energy_flux2='2.45e-05', photon_flux_error='4.25e-08', dlogl='9.39e-01', energy_flux='1.61e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-06 14:58:56.255046', photon_index_error2='0.52', photon_index2='1.98', ts='6.62', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.10', time_epoch_completed='1630965536.26', return_code='0', job_id='99091', GAL2='1.01', EG2='1.14', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='3.26e-08', ts2='8.48', photon_index='2.74' WHERE bin_id='682' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:58:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 99091: <4FGL_J1300.4+1416_daily_bin682> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin682> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:45:20 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:45:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:45:21 2021
Terminated at Mon Sep  6 14:58:56 2021
Results reported at Mon Sep  6 14:58:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin682 195.12 14.2701 416102401 416361601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1300.4+1416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

