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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin860
RA = 195.12, Dec = 14.2701
tmin = 462240001, tmax = 462499201
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='97316', job_status='RUN', time_executed='2021-09-06 14:43:54.364319', time_epoch_executed='1630964634.36' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='860'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97316/ft1_4FGL_J1300.4+1416_daily_bin860.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97316/ft2_4FGL_J1300.4+1416_daily_bin860.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97316/ft1_4FGL_J1300.4+1416_daily_bin860.fits outfile=/scratch/kocevski/97316/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin860.fits ra=195.12 dec=14.2701 rad=12.0 tmin=462240001.0 tmax=462499201.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.64
user 3.46
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97316/ft1_filtered_4FGL_J1300.4+1416_daily_bin860.fits" evtable="EVENTS" scfile=/scratch/kocevski/97316/ft2_4FGL_J1300.4+1416_daily_bin860.fits sctable="SC_DATA" outfile=/scratch/kocevski/97316/ltcube_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.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/97316/ft2_4FGL_J1300.4+1416_daily_bin860.fits
.....................!
real 12.10
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97316/ft1_filtered_4FGL_J1300.4+1416_daily_bin860.fits evtable="EVENTS" scfile=/scratch/kocevski/97316/ft2_4FGL_J1300.4+1416_daily_bin860.fits sctable="SC_DATA" expcube=/scratch/kocevski/97316/ltcube_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.fits outfile=/scratch/kocevski/97316/expmap_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.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/97316/ltcube_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.fits
.....................!
real 189.73
user 185.08
sys 4.22

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/97316/ft1_filtered_4FGL_J1300.4+1416_daily_bin860.fits scfile=/scratch/kocevski/97316/ft2_4FGL_J1300.4+1416_daily_bin860.fits outfile=/scratch/kocevski/97316/cmap_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97316/ft1_filtered_4FGL_J1300.4+1416_daily_bin860.fits scfile=/scratch/kocevski/97316/ft2_4FGL_J1300.4+1416_daily_bin860.fits outfile=/scratch/kocevski/97316/cmap_HighResolution_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .51614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7022       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34726       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.304       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6650       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.390       1.0000         .10000E-03   10000.    
    17 'norm      '    16.227       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4463       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81915       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=   6535.914     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2088 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7111       -.99784E-07** at limit **
   2  Prefactor     .10000E-03    9.1631       -.13376E-07** at limit **
   3  norm          .51622        .29082        .43112E-07   -.81478E-03
   4  Prefactor     .10000E-03    203.53       -.22006E-04** at limit **
   5  Prefactor     16.768        10.182        .23940E-06    .13595E-03
   6  Prefactor     .10000E-03    19.025       -.99333E-05** at limit **
   7  norm          1.7023        1.6937        .22129E-06   -.16953E-03
   8  Prefactor     .10000E-03    25.379        .56600E-05** at limit **
   9  Prefactor     .10000E-03    3.9605        .65621E-07** at limit **
  10  Prefactor     .44493        7.4099       -.34511E-05   -.11141E-03
  11  Prefactor     25.282        16.093        .12736E-04    .34656E-03
  12  norm          4.6662        3.9352        .12647E-06   -.23947E-03
  13  norm          .10000E-03    9.8119       -.56841E-07** at limit **
  14  norm          7.2229        10.872        .66376E-06   -.15905E-03
  15  Prefactor     16.055        13.665       -.78655E-06   -.62552E-09
  16  Prefactor     59.404        47.377        .84561E-05   -.14608E-06
  17  norm          16.230        12.287        .15627E-05   -.50829E-04
  18  Prefactor     .10000E-03    18.121        .68025E-05** at limit **
  19  Normalizat    1.4462        .21026       -.37461E-05    .54903E-03
  20  Prefactor     .81909        .17047       -.55941E-06    .15348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.516219
  Prefactor  = 0.0001
  Prefactor  = 16.7678
  Prefactor  = 0.0001
  norm       = 1.70234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.444925
  Prefactor  = 25.2823
  norm       = 4.66617
  norm       = 0.0001
  norm       = 7.2229
  Prefactor  = 16.0554
  Prefactor  = 59.4045
  norm       = 16.2305
  Prefactor  = 0.0001
  Normalizat = 1.44616
  Prefactor  = 0.81909
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.914     FROM HESSE     STATUS=OK           289 CALLS     2377 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7452        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .51622        .28633        .31352E-04   -1.5564    
   4  Prefactor     .10000E-03    203.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.768        10.184        .97811E-04   -1.4889    
   6  Prefactor     .10000E-03    19.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7023        1.6852        .10049E-03   -1.5447    
   8  Prefactor     .10000E-03    25.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9836        .15709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44493        74.166        .40741E-02   -1.5575    
  11  Prefactor     25.282        16.247        .79635E-04   -1.4702    
  12  norm          4.6662        3.9349        .14236E-03   -1.5276    
  13  norm          .10000E-03    9.8180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2229        10.826        .14925E-03   -1.5170    
  15  Prefactor     16.055        13.689        .99963E-04   -1.4906    
  16  Prefactor     59.404        47.304        .52061E-04   -1.4165    
  17  norm          16.230        12.237        .99428E-04   -1.4902    
  18  Prefactor     .10000E-03    18.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4462        .24999        .25827E-03   -.79303    
  20  Prefactor     .81909        .20319        .27995E-03   -.99028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47467e-09
Minuit parameter uncertainties:
  1  8.7512e-06
  2  5.77522e-06
  3  0.286335
  4  0.00023434
  5  10.1851
  6  3.84174e-05
  7  1.68523
  8  2.15382e-05
  9  9.63191e-06
  10  11.502
  11  16.25
  12  3.93509
  13  6.59312e-07
  14  10.8294
  15  13.6917
  16  47.3341
  17  12.2392
  18  3.43704e-06
  19  0.250202
  20  0.203381
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.528e+01  1.625e+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:  8.191e-01  2.034e-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.446e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 5.51e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.29e-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) = 6534.74286304
delta logL = 1.1709228883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6534.61505675
delta logL = 1.29872918423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.350       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7039       1.0000          .0000       10.000    
     3 'Normalizat'    1.5179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78463       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=   6534.615     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.350        11.285        .26434E-02    .33533E-02
   2  Index         1.7039        .33630        .16972       -.82626E-04
   3  Normalizat    1.5179        .19957        .57246E-01    .14551E-05
   4  Prefactor     .78469        .16896        .64491E-01    .20279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3496
  Index      = 1.70392
  Normalizat = 1.51786
  Prefactor  = 0.784693
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.615     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.350        17.747        .10573E-03   -1.4950    
   2  Index         1.7039        .59529        .66662E-02   -.71977    
   3  Normalizat    1.5179        .23798        .25313E-03   -.77278    
   4  Prefactor     .78469        .20052        .28529E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41186e-08
Minuit parameter uncertainties:
  1  17.7537
  2  0.597809
  3  0.238156
  4  0.200708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97316': 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) = 6534.61505669
delta logL = 1.29872924415

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.435e+01  1.775e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.704e+00  5.978e-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:  7.847e-01  2.007e-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.518e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 195.120 14.270
Photon Index (Free Index): 1.70 +/- 0.60
Photon Flux (Free Index): 2.56e-08 +/- 3.31e-08
Energy Flux (Free Index): 4.12e-05 +/- 4.63e-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/97316/cmap_HighResolution_462240001_462499201_4FGL_J1300.4+1416_daily_bin860.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='4.12e-05', photon_flux_error='5.51e-08', dlogl='1.30e+00', energy_flux='2.01e-05', photon_flux2='2.56e-08', job_status='DONE', time_completed='2021-09-06 14:53:56.068749', photon_index_error2='0.60', photon_index2='1.70', ts='4.51', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='4.63e-05', EG='1.45', time_epoch_completed='1630965236.07', return_code='0', job_id='97316', GAL2='0.78', EG2='1.52', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.31e-08', ts2='7.07', photon_index='2.74' WHERE bin_id='860' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:53:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 97316: <4FGL_J1300.4+1416_daily_bin860> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin860> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:27 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:29 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:40:29 2021
Terminated at Mon Sep  6 14:53:56 2021
Results reported at Mon Sep  6 14:53:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin860 195.12 14.2701 462240001 462499201 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.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

