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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin796
RA = 195.12, Dec = 14.2701
tmin = 445651201, tmax = 445910401
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='95869', job_status='RUN', time_executed='2021-09-06 14:39:29.903562', time_epoch_executed='1630964369.9' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95869/ft1_4FGL_J1300.4+1416_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95869/ft1_4FGL_J1300.4+1416_daily_bin796.fits outfile=/scratch/kocevski/95869/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin796.fits ra=195.12 dec=14.2701 rad=12.0 tmin=445651201.0 tmax=445910401.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 3.52
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.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/95869/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin796.fits evtable="EVENTS" outfile="/scratch/kocevski/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.fits" evtable="EVENTS" scfile=/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits sctable="SC_DATA" outfile=/scratch/kocevski/95869/ltcube_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.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/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits
.....................!
real 13.22
user 12.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/95869/ltcube_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.fits outfile=/scratch/kocevski/95869/expmap_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.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/95869/ltcube_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.fits
.....................!
real 192.66
user 187.16
sys 5.09

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/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.fits scfile=/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits outfile=/scratch/kocevski/95869/cmap_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.fits scfile=/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits outfile=/scratch/kocevski/95869/cmap_HighResolution_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.fits', '/scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits', expMap='/scratch/kocevski/95869/expmap_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.fits', expCube='/scratch/kocevski/95869/ltcube_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95869/Model_4FGL_J1300.4+1416_daily_bin796.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/95869/ft1_filtered_4FGL_J1300.4+1416_daily_bin796.fits
Spacecraft file(s): /scratch/kocevski/95869/ft2_4FGL_J1300.4+1416_daily_bin796.fits
Exposure map: /scratch/kocevski/95869/expmap_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.fits
Exposure cube: /scratch/kocevski/95869/ltcube_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95869/Model_4FGL_J1300.4+1416_daily_bin796.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) = 6398.33394028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    20.212       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    153.31       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20511E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.899       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54879E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4675       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.829       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66908       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2409       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=   6398.323     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2073 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .93502       -.89084E-07** at limit **
   2  Prefactor     20.182        28.758        .63255E-06    .27473E-04
   3  norm          1.4322        .38108       -.26853E-07    .78715E-03
   4  Prefactor     153.92        195.98       -.47141E-06    .84050E-05
   5  Prefactor     4.9562        7.0907        .14332E-06    .38488E-04
   6  Prefactor     .10000E-03    18.139       -.37009E-06** at limit **
   7  norm          4.4550        2.0343        .79938E-07    .23153E-03
   8  Prefactor     .10000E-03    24.348        .96354E-07** at limit **
   9  Prefactor     .10000E-03    4.2531       -.75879E-06** at limit **
  10  Prefactor     14.099        13.127       -.27115E-06    .62301E-04
  11  Prefactor     33.912        19.434       -.38836E-06    .10809E-03
  12  norm          .10000E-03    .81345       -.50724E-07** at limit **
  13  norm          .10000E-03    6.2714       -.89308E-07** at limit **
  14  norm          .10000E-03    4.7664       -.23595E-06** at limit **
  15  Prefactor     .10002E-03    8.6828       -.63295E-06** at limit **
  16  Prefactor     .10000E-03    14.190       -.24006E-06** at limit **
  17  norm          5.4709        6.5910       -.16556E-06    .79460E-04
  18  Prefactor     39.862        51.354        .51824E-06    .29270E-04
  19  Normalizat    .66887        .21736        .89335E-05    .30496E-03
  20  Prefactor     1.2411        .19338       -.47969E-05    .56492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.1819
  norm       = 1.43215
  Prefactor  = 153.922
  Prefactor  = 4.95617
  Prefactor  = 0.0001
  norm       = 4.45499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0993
  Prefactor  = 33.9123
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 5.47094
  Prefactor  = 39.8624
  Normalizat = 0.66887
  Prefactor  = 1.24108
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.323     FROM HESSE     STATUS=OK           301 CALLS     2374 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93942        .75572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.182        28.737        .89089E-04   -1.4809    
   3  norm          1.4322        .38085        .24363E-04   -1.5469    
   4  Prefactor     153.92        195.92        .16278E-03   -1.3220    
   5  Prefactor     4.9562        7.0803        .18063E-03   -1.5263    
   6  Prefactor     .10000E-03    18.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4550        2.0303        .73563E-04   -1.5286    
   8  Prefactor     .10000E-03    24.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.894        .31781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.099        13.114        .10667E-03   -1.4957    
  11  Prefactor     33.912        19.444        .68826E-04   -1.4543    
  12  norm          .10000E-03    .81492        .70470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.2815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8660        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    14.697        .66526E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4709        6.5792        .17184E-03   -1.5240    
  18  Prefactor     39.862        51.342        .63513E-04   -1.4444    
  19  Normalizat    .66887        .21880        .32148E-03   -1.0514    
  20  Prefactor     1.2411        .19167        .21812E-03   -.85076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16373e-10
Minuit parameter uncertainties:
  1  3.46709e-06
  2  28.7571
  3  0.380854
  4  196.752
  5  7.08146
  6  6.97345e-05
  7  2.03032
  8  1.71765e-06
  9  6.45868e-05
  10  13.1163
  11  19.4479
  12  2.13143e-06
  13  7.94865e-06
  14  3.21961e-05
  15  0.00101189
  16  3.01828e-05
  17  6.58007
  18  51.3991
  19  0.219085
  20  0.191774
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.391e+01  1.945e+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.241e+00  1.918e-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:  6.689e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 6.59e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.54e-05

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) = 6398.05742676
delta logL = 0.265763760885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6398.0542581
delta logL = 0.268932419393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.899       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2784       1.0000          .0000       10.000    
     3 'Normalizat'    .62185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2728       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=   6398.054     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.930        210.98        .19679E-02    .60196E-03
   2  Index         3.2793        6.5910        .17790        .76568E-04
   3  Normalizat    .62175        .82587E-01    .75097E-01   -.85868E-05
   4  Prefactor     1.2723        .69718E-01    .48824E-01   -.67655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9302
  Index      = 3.2793
  Normalizat = 0.621748
  Prefactor  = 1.27227
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.054     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.930        23.079        .39358E-03   -1.4689    
   2  Index         3.2793        .88947        .66515E-02   -.35132    
   3  Normalizat    .62175        .22362        .33248E-03   -1.0707    
   4  Prefactor     1.2723        .19471        .21583E-03   -.84135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79388e-09
Minuit parameter uncertainties:
  1  23.0868
  2  0.894877
  3  0.223949
  4  0.194824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95869': 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) = 6398.05423822
delta logL = 0.268952302341

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.593e+01  2.309e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.279e+00  8.949e-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.272e+00  1.948e-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:  6.217e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.38
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.28 +/- 0.89
Photon Flux (Free Index): 1.50e-07 +/- 8.41e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.40e-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/95869/cmap_HighResolution_445651201_445910401_4FGL_J1300.4+1416_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='2.67e-05', photon_flux_error='6.59e-08', dlogl='2.69e-01', energy_flux='2.69e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-06 14:48:49.652797', photon_index_error2='0.89', photon_index2='3.28', ts='4.68', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.67', time_epoch_completed='1630964929.65', return_code='0', job_id='95869', GAL2='1.27', EG2='0.62', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='8.41e-08', ts2='5.38', photon_index='2.74' WHERE bin_id='796' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:48:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 95869: <4FGL_J1300.4+1416_daily_bin796> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin796> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:46 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:47 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:35:47 2021
Terminated at Mon Sep  6 14:48:51 2021
Results reported at Mon Sep  6 14:48:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin796 195.12 14.2701 445651201 445910401 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

