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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin379
RA = 195.12, Dec = 14.2701
tmin = 337564801, tmax = 337824001
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='94110', job_status='RUN', time_executed='2021-09-06 14:34:05.306157', time_epoch_executed='1630964045.31' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94110

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94110/ft1_4FGL_J1300.4+1416_daily_bin379.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94110/ft2_4FGL_J1300.4+1416_daily_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94110/ft1_4FGL_J1300.4+1416_daily_bin379.fits outfile=/scratch/kocevski/94110/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin379.fits ra=195.12 dec=14.2701 rad=12.0 tmin=337564801.0 tmax=337824001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.19
user 5.90
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94110/ft2_4FGL_J1300.4+1416_daily_bin379.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/94110/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin379.fits evtable="EVENTS" outfile="/scratch/kocevski/94110/ft1_filtered_4FGL_J1300.4+1416_daily_bin379.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/94110/ft1_filtered_4FGL_J1300.4+1416_daily_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/94110/ft2_4FGL_J1300.4+1416_daily_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/94110/ltcube_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.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/94110/ft2_4FGL_J1300.4+1416_daily_bin379.fits
.....................!
real 11.50
user 11.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94110/ft1_filtered_4FGL_J1300.4+1416_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/94110/ft2_4FGL_J1300.4+1416_daily_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/94110/ltcube_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.fits outfile=/scratch/kocevski/94110/expmap_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.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/94110/ltcube_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.fits
.....................!
real 191.37
user 185.77
sys 5.19

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/94110/ft1_filtered_4FGL_J1300.4+1416_daily_bin379.fits scfile=/scratch/kocevski/94110/ft2_4FGL_J1300.4+1416_daily_bin379.fits outfile=/scratch/kocevski/94110/cmap_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.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.57
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17892       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.029       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5041       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46296       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.291       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6965       1.0000         .10000E-03   10000.    
    13 'norm      '    15.156       1.0000         .10000E-03   10000.    
    14 'norm      '    7.5826       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7703       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.905       1.0000         .10000E-03   10000.    
    17 'norm      '    .16893E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    81.021       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1640       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95415       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=   5436.545     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2088 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18236        1.6364       -.41264E-06   -.51272E-04
   2  Prefactor     .10000E-03    15.381       -.60409E-06** at limit **
   3  norm          .10000E-03    .15275        .33326E-07** at limit **
   4  Prefactor     .10000E-03    42.748        .56605E-06** at limit **
   5  Prefactor     17.030        15.143        .22550E-05    .68645E-04
   6  Prefactor     5.4982        38.656       -.14449E-04   -.24988E-04
   7  norm          5.9194        2.2609       -.11837E-06    .15541E-04
   8  Prefactor     11.859        74.448        .57379E-05    .85789E-06
   9  Prefactor     .44578        5.2470       -.11069E-05    .96717E-04
  10  Prefactor     11.079        15.888       -.60567E-06   -.26859E-04
  11  Prefactor     24.289        16.655       -.28757E-06    .27290E-04
  12  norm          4.6972        4.0037       -.92136E-07    .48532E-04
  13  norm          15.156        14.730       -.10668E-06    .23843E-04
  14  norm          7.5757        7.3715       -.42455E-06   -.16905E-03
  15  Prefactor     6.7684        15.987       -.14037E-05   -.45930E-04
  16  Prefactor     17.904        24.542       -.13912E-05   -.23610E-05
  17  norm          .10000E-03    7.2864        .20851E-06** at limit **
  18  Prefactor     81.012        58.617       -.92462E-05    .40690E-05
  19  Normalizat    1.1642        .21786        .17614E-05    .11169E-03
  20  Prefactor     .95403        .18560        .26109E-06    .16526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.18236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0299
  Prefactor  = 5.49823
  norm       = 5.91937
  Prefactor  = 11.859
  Prefactor  = 0.445785
  Prefactor  = 11.0786
  Prefactor  = 24.2893
  norm       = 4.69715
  norm       = 15.1564
  norm       = 7.5757
  Prefactor  = 6.76842
  Prefactor  = 17.9036
  norm       = 0.0001
  Prefactor  = 81.0119
  Normalizat = 1.16424
  Prefactor  = 0.954031
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.545     FROM HESSE     STATUS=OK           309 CALLS     2397 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18236        8.5598        .18172E-02   -1.5623    
   2  Prefactor     .10000E-03    15.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .31468        .55582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.030        15.070        .97056E-04   -1.4882    
   6  Prefactor     5.4982        38.973        .17126E-03   -1.5239    
   7  norm          5.9194        2.2624        .66229E-04   -1.5221    
   8  Prefactor     11.859        73.425        .11634E-03   -1.5019    
   9  Prefactor     .44578        39.527        .31408E-02   -1.5574    
  10  Prefactor     11.079        15.776        .12035E-03   -1.5042    
  11  Prefactor     24.289        16.695        .81276E-04   -1.4722    
  12  norm          4.6972        4.0026        .13055E-03   -1.5274    
  13  norm          15.156        14.731        .10288E-03   -1.4929    
  14  norm          7.5757        6.7700        .14564E-03   -1.5157    
  15  Prefactor     6.7684        16.045        .15421E-03   -1.5188    
  16  Prefactor     17.904        24.555        .94653E-04   -1.4861    
  17  norm          .10000E-03    26.373        .35059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     81.012        58.426        .44621E-04   -1.3905    
  19  Normalizat    1.1642        .25916        .25972E-03   -.87715    
  20  Prefactor     .95403        .22040        .25378E-03   -.94278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60379e-08
Minuit parameter uncertainties:
  1  2.49846
  2  5.22972e-06
  3  6.22954e-06
  4  1.73168e-06
  5  15.0736
  6  29.3037
  7  2.26244
  8  59.1244
  9  8.40015
  10  15.7817
  11  16.6981
  12  4.0028
  13  14.7345
  14  6.77067
  15  16.0556
  16  24.5692
  17  0.000189484
  18  58.4677
  19  0.259448
  20  0.220612
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.429e+01  1.670e+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:  9.540e-01  2.206e-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.164e+00  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.24e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/94110/likelihoodResults_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.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) = 5436.18186649
delta logL = 0.363609600314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5436.1784255
delta logL = 0.36705058314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.365       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7133       1.0000          .0000       10.000    
     3 'Normalizat'    1.1211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98858       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=   5436.178     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.369        25.729        .11883E-03    .51546E-03
   2  Index         3.7133        1.9294        .66049E-02    .16793E-03
   3  Normalizat    1.1207        .24940        .26389E-03    .13338E-03
   4  Prefactor     .98891        .22182        .24982E-03    .18548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3691
  Index      = 3.71331
  Normalizat = 1.12069
  Prefactor  = 0.988906
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.178     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.369        17.555        .47534E-05   -1.5033    
   2  Index         3.7133        1.3350        .26420E-03   -.26027    
   3  Normalizat    1.1207        .24880        .10555E-04   -.89090    
   4  Prefactor     .98891        .22034        .49964E-04   -.93100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01778e-10
Minuit parameter uncertainties:
  1  17.563
  2  1.3526
  3  0.249064
  4  0.220537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94110': 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) = 5436.17842389
delta logL = 0.367052199172

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.137e+01  1.756e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.713e+00  1.353e+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:  9.889e-01  2.205e-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.121e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.71 +/- 1.35
Photon Flux (Free Index): 1.06e-07 +/- 6.49e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.07e-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/94110/cmap_HighResolution_337564801_337824001_4FGL_J1300.4+1416_daily_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', comment='SUCCESS', photon_flux='8.24e-08', energy_flux2='1.67e-05', photon_flux_error='5.66e-08', dlogl='3.67e-01', energy_flux='1.93e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-06 14:43:51.070422', photon_index_error2='1.35', photon_index2='3.71', ts='3.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.07e-05', EG='1.16', time_epoch_completed='1630964631.07', return_code='0', job_id='94110', GAL2='0.99', EG2='1.12', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.49e-08', ts2='3.98', photon_index='2.74' WHERE bin_id='379' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:43:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 94110: <4FGL_J1300.4+1416_daily_bin379> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin379> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:34 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:36 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:30:36 2021
Terminated at Mon Sep  6 14:43:51 2021
Results reported at Mon Sep  6 14:43:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin379 195.12 14.2701 337564801 337824001 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 :                                   579.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

