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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin929
RA = 195.12, Dec = 14.2701
tmin = 480124801, tmax = 480384001
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='97418', job_status='RUN', time_executed='2021-09-06 14:44:37.832472', time_epoch_executed='1630964677.83' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97418/ft1_4FGL_J1300.4+1416_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97418/ft2_4FGL_J1300.4+1416_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97418/ft1_4FGL_J1300.4+1416_daily_bin929.fits outfile=/scratch/kocevski/97418/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin929.fits ra=195.12 dec=14.2701 rad=12.0 tmin=480124801.0 tmax=480384001.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.54
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97418/ft1_filtered_4FGL_J1300.4+1416_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/97418/ft2_4FGL_J1300.4+1416_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/97418/ltcube_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.fits outfile=/scratch/kocevski/97418/expmap_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.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/97418/ltcube_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.fits
.....................!
real 192.02
user 186.30
sys 5.31

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/97418/ft1_filtered_4FGL_J1300.4+1416_daily_bin929.fits scfile=/scratch/kocevski/97418/ft2_4FGL_J1300.4+1416_daily_bin929.fits outfile=/scratch/kocevski/97418/cmap_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97418/ft1_filtered_4FGL_J1300.4+1416_daily_bin929.fits scfile=/scratch/kocevski/97418/ft2_4FGL_J1300.4+1416_daily_bin929.fits outfile=/scratch/kocevski/97418/cmap_HighResolution_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .39113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    91.757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2448       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7711       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.793       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1999       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89070       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=   5451.208     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1736 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7747        2.9707       -.40502E-06   -.59614E-03
   2  Prefactor     .10000E-03    15.827        .39889E-05** at limit **
   3  norm          .39113        .24774       -.26748E-07   -.73200E-03
   4  Prefactor     .10000E-03    55.124       -.70901E-06** at limit **
   5  Prefactor     .10000E-03    3.0186       -.15640E-07** at limit **
   6  Prefactor     .10000E-03    22.600        .33662E-05** at limit **
   7  norm          2.6349        1.7908       -.72577E-07   -.16929E-03
   8  Prefactor     91.757        55.612       -.52148E-06    .16968E-05
   9  Prefactor     .10000E-03    7.2728       -.27776E-07** at limit **
  10  Prefactor     6.3861        11.472       -.24680E-06   -.70549E-04
  11  Prefactor     7.2427        11.847       -.17920E-07   -.50017E-04
  12  norm          .10000E-03    1.6379       -.42696E-08** at limit **
  13  norm          .10000E-03    18.301       -.65703E-05** at limit **
  14  norm          .74405        4.6173       -.12287E-05    .16855E-03
  15  Prefactor     .10000E-03    8.3302        .66931E-07** at limit **
  16  Prefactor     .10000E-03    10.770       -.39892E-06** at limit **
  17  norm          7.7718        7.0923       -.40171E-06    .21519E-03
  18  Prefactor     58.783        48.887       -.10192E-04    .36012E-05
  19  Normalizat    1.2000        .20090        .80220E-06    .11995E-03
  20  Prefactor     .89061        .17111        .50249E-06    .94794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77473
  Prefactor  = 0.0001
  norm       = 0.391131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63492
  Prefactor  = 91.7566
  Prefactor  = 0.0001
  Prefactor  = 6.38605
  Prefactor  = 7.24267
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.744045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.77175
  Prefactor  = 58.783
  Normalizat = 1.20005
  Prefactor  = 0.890611
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.208     FROM HESSE     STATUS=OK           289 CALLS     2025 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7747        2.9780        .16003E-03   -1.5442    
   2  Prefactor     .10000E-03    15.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .39113        .24135        .28222E-03   -1.5583    
   4  Prefactor     .10000E-03    55.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0209        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6349        1.7895        .78662E-04   -1.5383    
   8  Prefactor     91.757        55.542        .41952E-04   -1.3789    
   9  Prefactor     .10000E-03    7.4013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3861        11.442        .15883E-03   -1.5203    
  11  Prefactor     7.2427        11.849        .14902E-03   -1.5170    
  12  norm          .10000E-03    1.6500        .92260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74405        15.707        .28558E-02   -1.5535    
  15  Prefactor     .10000E-03    8.3665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7718        7.0800        .14385E-03   -1.5150    
  18  Prefactor     58.783        48.877        .52323E-04   -1.4173    
  19  Normalizat    1.2000        .23748        .24728E-03   -.86601    
  20  Prefactor     .89061        .20210        .24717E-03   -.96470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01087e-10
Minuit parameter uncertainties:
  1  2.97821
  2  6.58481e-06
  3  0.241347
  4  4.67902e-06
  5  1.75012e-06
  6  3.91857e-05
  7  1.78953
  8  55.5736
  9  1.04463e-05
  10  11.4457
  11  11.8525
  12  4.73105e-07
  13  2.11414e-05
  14  6.83878
  15  2.54729e-07
  16  1.98263e-06
  17  7.08073
  18  48.9101
  19  0.23769
  20  0.202273
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  7.243e+00  1.185e+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.906e-01  2.023e-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.200e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97418/likelihoodResults_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.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) = 5450.27930178
delta logL = 0.928991344302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.0733062
delta logL = 1.13498691887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21809E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9997       1.0000          .0000       10.000    
     3 'Normalizat'    1.1314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94010       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=   5450.073     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      417 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21791E-02    .69801E-01    .66896E-03** at limit **
   2  Index        10.0000        7.7078        .50000    ** at limit **
   3  Normalizat    1.1315        .10757        .57262E-01    .74418E-05
   4  Prefactor     .94004        .93404E-01    .45514E-01    .69448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00217908
  Index      = 10
  Normalizat = 1.13146
  Prefactor  = 0.940038
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.073     FROM HESSE     STATUS=OK            37 CALLS      454 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21791E-02    .23093E-02    .27560E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.8171        .41451        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1315        .23499        .25323E-03   -.88748    
   4  Prefactor     .94004        .20463        .24136E-03   -.94756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44462e-12
Minuit parameter uncertainties:
  1  0.00230926
  2  0.000103786
  3  0.235211
  4  0.204797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97418': 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) = 5450.07330212
delta logL = 1.13499100525

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.179e-03  2.309e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.000e+01  1.038e-04  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:  9.400e-01  2.048e-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.131e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 195.120 14.270
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.29e-08 +/- 7.48e-08
Energy Flux (Free Index): 8.15e-06 +/- 8.42e-06

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/97418/cmap_HighResolution_480124801_480384001_4FGL_J1300.4+1416_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', comment='SUCCESS', energy_flux2='8.15e-06', dlogl='1.13e+00', photon_flux2='7.29e-08', job_status='DONE', time_completed='2021-09-06 14:54:11.091167', photon_index_error2='0.00', photon_index2='10.00', ts='0.52', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='8.42e-06', EG='1.20', time_epoch_completed='1630965251.09', return_code='0', job_id='97418', GAL2='0.94', EG2='1.13', return_code2='0', photon_flux_error2='7.48e-08', ts2='2.89', photon_index='2.74' WHERE bin_id='929' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:54:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 97418: <4FGL_J1300.4+1416_daily_bin929> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin929> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:34 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:35 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:35 2021
Terminated at Mon Sep  6 14:54:11 2021
Results reported at Mon Sep  6 14:54:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin929 195.12 14.2701 480124801 480384001 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 :                                   547.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

