/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 190 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 = 7574
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin288
RA = 195.12, Dec = 14.2701
tmin = 313977601, tmax = 314236801
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='92969', job_status='RUN', time_executed='2021-09-06 14:29:41.045483', time_epoch_executed='1630963781.05' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92969/ft1_4FGL_J1300.4+1416_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92969/ft2_4FGL_J1300.4+1416_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92969/ft1_4FGL_J1300.4+1416_daily_bin288.fits outfile=/scratch/kocevski/92969/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin288.fits ra=195.12 dec=14.2701 rad=12.0 tmin=313977601.0 tmax=314236801.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.42
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92969/ft2_4FGL_J1300.4+1416_daily_bin288.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/92969/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin288.fits evtable="EVENTS" outfile="/scratch/kocevski/92969/ft1_filtered_4FGL_J1300.4+1416_daily_bin288.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/92969/ft1_filtered_4FGL_J1300.4+1416_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/92969/ft2_4FGL_J1300.4+1416_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/92969/ltcube_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.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/92969/ft2_4FGL_J1300.4+1416_daily_bin288.fits
.....................!
real 12.29
user 11.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92969/ft1_filtered_4FGL_J1300.4+1416_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/92969/ft2_4FGL_J1300.4+1416_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/92969/ltcube_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.fits outfile=/scratch/kocevski/92969/expmap_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.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/92969/ltcube_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.fits
.....................!
real 189.55
user 185.11
sys 4.05

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/92969/ft1_filtered_4FGL_J1300.4+1416_daily_bin288.fits scfile=/scratch/kocevski/92969/ft2_4FGL_J1300.4+1416_daily_bin288.fits outfile=/scratch/kocevski/92969/cmap_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92969/ft1_filtered_4FGL_J1300.4+1416_daily_bin288.fits scfile=/scratch/kocevski/92969/ft2_4FGL_J1300.4+1416_daily_bin288.fits outfile=/scratch/kocevski/92969/cmap_HighResolution_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.4613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.640       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82631E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.395       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.164       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96472E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.330       1.0000         .10000E-03   10000.    
    17 'norm      '    20.353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.241       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1193       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7754.770     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     2355 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4383        3.5707        .13051E-03   -.10976E-04
   2  Prefactor     .10000E-03    42.924        .18142E-02** at limit **
   3  norm          8.4615        .71197        .20716E-04    .20854E-04
   4  Prefactor     .10000E-03    47.994        .18142E-02** at limit **
   5  Prefactor     .10000E-03    24.225        .36285E-03** at limit **
   6  Prefactor     15.672        22.959        .10128E-03    .15154E-04
   7  norm          .10000E-03    .68172        .70130E-03** at limit **
   8  Prefactor     29.835        46.254        .73217E-04   -.55619E-04
   9  Prefactor     .10000E-03    2.2106        .12773E-02** at limit **
  10  Prefactor     .10009E-03    65.734        .49448E-02** at limit **
  11  Prefactor     15.369        14.705        .10208E-03   -.21784E-03
  12  norm          .10000E-03    1.3931        .10069E-02** at limit **
  13  norm          30.166        20.241        .72951E-04    .95062E-05
  14  norm          .10000E-03    4.1421        .17374E-02** at limit **
  15  Prefactor     .10018E-03    113.26        .52516E-02** at limit **
  16  Prefactor     29.333        26.660        .73978E-04    .61470E-06
  17  norm          20.355        9.3290        .88780E-04    .25611E-04
  18  Prefactor     23.242        36.959        .83089E-04    .34206E-05
  19  Normalizat    1.2360        .25143        .30274E-03   -.20766E-04
  20  Prefactor     1.1194        .21563        .28117E-03   -.95950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.43832
  Prefactor  = 0.0001
  norm       = 8.46146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6716
  norm       = 0.0001
  Prefactor  = 29.8355
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  Prefactor  = 15.369
  norm       = 0.0001
  norm       = 30.1657
  norm       = 0.0001
  Prefactor  = 0.000100177
  Prefactor  = 29.3327
  norm       = 20.3547
  Prefactor  = 23.2421
  Normalizat = 1.23599
  Prefactor  = 1.1194
 **********
 **   18 **HESSE 
 **********

 FCN=   7754.770     FROM HESSE     STATUS=OK           273 CALLS     2628 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4383        3.5706        .52203E-05   -1.5242    
   2  Prefactor     .10000E-03    42.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.4615        .71196        .82865E-06   -1.5126    
   4  Prefactor     .10000E-03    47.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.225        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.672        22.956        .40510E-05   -1.4916    
   7  norm          .10000E-03    .68182        .14026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.835        46.180        .14643E-04   -1.4615    
   9  Prefactor     .10000E-03    2.2107        .25545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10009E-03    67.030        .19779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.369        14.696        .40831E-05   -1.4924    
  12  norm          .10000E-03    1.3934        .20138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.166        20.241        .14590E-04   -1.4609    
  14  norm          .10000E-03    4.1436        .34749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10018E-03    117.79        .21006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.333        26.662        .29591E-05   -1.4624    
  17  norm          20.355        9.3280        .35512E-05   -1.4805    
  18  Prefactor     23.242        36.976        .33236E-05   -1.4743    
  19  Normalizat    1.2360        .25163        .12110E-04   -.85498    
  20  Prefactor     1.1194        .21588        .11247E-04   -.88849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87398e-09
Minuit parameter uncertainties:
  1  3.57075
  2  0.000122594
  3  0.711959
  4  6.83221e-05
  5  8.25969e-05
  6  22.969
  7  2.14397e-06
  8  46.2358
  9  3.06149e-06
  10  0.00479962
  11  14.6991
  12  2.31498e-06
  13  20.2457
  14  5.86524e-06
  15  0.00915393
  16  26.6725
  17  9.32867
  18  37.0125
  19  0.251879
  20  0.216047
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.537e+01  1.470e+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.119e+00  2.160e-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.236e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.17e-05

TS (Fixed Index): 1.44
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92969/likelihoodResults_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.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): 0
logL (Free Index) = 7754.55817025
delta logL = 0.212069840509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7754.55165574
delta logL = 0.218584352108

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7754.552     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      292 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.478        16.472        .12377E-03   -.27280E-04
   2  Index         3.4060        1.3229        .97652E-02    .37812E-03
   3  Normalizat    1.2082        .24791        .30571E-03   -.27052E-03
   4  Prefactor     1.1376        .21685        .27922E-03   -.25319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4777
  Index      = 3.40601
  Normalizat = 1.20824
  Prefactor  = 1.13757
 **********
 **   18 **HESSE 
 **********

 FCN=   7754.552     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.478        14.332        .49509E-05   -1.5060    
   2  Index         3.4060        1.1536        .19530E-02   -.32446    
   3  Normalizat    1.2082        .24816        .61143E-04   -.86349    
   4  Prefactor     1.1376        .21684        .55843E-04   -.88275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85878e-11
Minuit parameter uncertainties:
  1  14.3369
  2  1.16532
  3  0.248403
  4  0.217005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92969': 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) = 7754.55165447
delta logL = 0.218585617503

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.048e+01  1.434e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.406e+00  1.165e+00  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.138e+00  2.170e-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.208e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.41 +/- 1.17
Photon Flux (Free Index): 6.95e-08 +/- 5.89e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.01e-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/92969/cmap_HighResolution_313977601_314236801_4FGL_J1300.4+1416_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='1.19e-05', photon_flux_error='4.98e-08', dlogl='2.19e-01', energy_flux='1.22e-05', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-06 14:41:52.087800', photon_index_error2='1.17', photon_index2='3.41', ts='1.44', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.01e-05', EG='1.24', time_epoch_completed='1630964512.09', return_code='0', job_id='92969', GAL2='1.14', EG2='1.21', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.89e-08', ts2='1.89', photon_index='2.74' WHERE bin_id='288' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 92969: <4FGL_J1300.4+1416_daily_bin288> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin288> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:02 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:04 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:26:04 2021
Terminated at Mon Sep  6 14:41:53 2021
Results reported at Mon Sep  6 14:41:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin288 195.12 14.2701 313977601 314236801 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 :                                   726.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

