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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin316
RA = 195.12, Dec = 14.2701
tmin = 321235201, tmax = 321494401
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='92997', job_status='RUN', time_executed='2021-09-06 14:29:47.988721', time_epoch_executed='1630963787.99' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92997/ft1_4FGL_J1300.4+1416_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92997/ft1_4FGL_J1300.4+1416_daily_bin316.fits outfile=/scratch/kocevski/92997/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin316.fits ra=195.12 dec=14.2701 rad=12.0 tmin=321235201.0 tmax=321494401.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.53
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.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/92997/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin316.fits evtable="EVENTS" outfile="/scratch/kocevski/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/92997/ltcube_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.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/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits
.....................!
real 12.05
user 11.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/92997/ltcube_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.fits outfile=/scratch/kocevski/92997/expmap_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.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/92997/ltcube_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.fits
.....................!
real 189.78
user 185.21
sys 4.21

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/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.fits scfile=/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits outfile=/scratch/kocevski/92997/cmap_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.fits scfile=/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits outfile=/scratch/kocevski/92997/cmap_HighResolution_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.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/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/92997/ft2_4FGL_J1300.4+1416_daily_bin316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92997/Model_4FGL_J1300.4+1416_daily_bin316.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/92997/ft1_filtered_4FGL_J1300.4+1416_daily_bin316.fits.....................!
real 61.20
user 59.87
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0835       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.688       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.176       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.188       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6543       1.0000         .10000E-03   10000.    
    17 'norm      '    10.507       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84837       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0513       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=   6938.826     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     2313 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2793        2.7903        .14950E-03    .55512E-05
   2  Prefactor     .10000E-03    21.248        .18142E-02** at limit **
   3  norm          6.0836        .65530        .21230E-04   -.17029E-03
   4  Prefactor     2.3472        1073.7        .25746E-02   -.39255E-05
   5  Prefactor     .10000E-03    7.2267        .18142E-02** at limit **
   6  Prefactor     17.682        25.464        .95232E-04    .60883E-04
   7  norm          4.2839        1.7905        .69229E-04   -.37442E-03
   8  Prefactor     32.178        35.059        .35303E-03    .33457E-03
   9  Prefactor     10.003        6.9048        .12670E-03   -.36790E-05
  10  Prefactor     1.1950        46.015        .20724E-02   -.47204E-04
  11  Prefactor     23.160        17.392        .83205E-04    .32697E-03
  12  norm          .10000E-03    1.1358        .86529E-03** at limit **
  13  norm          10.188        12.294        .12554E-03   -.19018E-05
  14  norm          .10000E-03    2.0982        .11768E-02** at limit **
  15  Prefactor     6.9281        12.135        .15241E-03    .15516E-04
  16  Prefactor     5.6558        41.858        .16893E-03   -.17026E-04
  17  norm          10.507        7.8937        .12361E-03    .14072E-04
  18  Prefactor     .10000E-03    9.4783        .18142E-02** at limit **
  19  Normalizat    .84828        .23667        .31475E-03    .47678E-05
  20  Prefactor     1.0513        .19449        .24563E-03   -.68455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27927
  Prefactor  = 0.0001
  norm       = 6.08356
  Prefactor  = 2.34721
  Prefactor  = 0.0001
  Prefactor  = 17.682
  norm       = 4.2839
  Prefactor  = 32.1778
  Prefactor  = 10.0034
  Prefactor  = 1.19503
  Prefactor  = 23.16
  norm       = 0.0001
  norm       = 10.1881
  norm       = 0.0001
  Prefactor  = 6.9281
  Prefactor  = 5.65578
  norm       = 10.5074
  Prefactor  = 0.0001
  Normalizat = 0.848284
  Prefactor  = 1.05131
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.826     FROM HESSE     STATUS=OK           273 CALLS     2586 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2793        2.7902        .59801E-05   -1.5406    
   2  Prefactor     .10000E-03    21.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0836        .65527        .84919E-06   -1.5215    
   4  Prefactor     2.3472        1073.9        .10299E-03   -1.5402    
   5  Prefactor     .10000E-03    7.2289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.682        25.461        .38093E-05   -1.4867    
   7  norm          4.2839        1.7905        .27692E-05   -1.5294    
   8  Prefactor     32.178        34.912        .70607E-04   -1.4573    
   9  Prefactor     10.003        6.9043        .50678E-05   -1.5075    
  10  Prefactor     1.1950        44.938        .82897E-04   -1.5489    
  11  Prefactor     23.160        17.325        .33282E-05   -1.4745    
  12  norm          .10000E-03    1.1358        .17306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.188        12.294        .50215E-05   -1.5069    
  14  norm          .10000E-03    2.0982        .23536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9281        12.133        .60962E-05   -1.5181    
  16  Prefactor     5.6558        41.860        .67573E-05   -1.5232    
  17  norm          10.507        7.8928        .49443E-05   -1.5060    
  18  Prefactor     .10000E-03    9.4783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .84828        .23653        .12590E-04   -.98302    
  20  Prefactor     1.0513        .19460        .98250E-05   -.91038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71524e-10
Minuit parameter uncertainties:
  1  2.79037
  2  0.000184652
  3  0.65527
  4  102.314
  5  3.59792e-05
  6  25.4769
  7  1.79048
  8  34.9344
  9  6.90482
  10  14.6676
  11  17.3287
  12  1.28247e-06
  13  12.2969
  14  6.75892e-07
  15  12.1377
  16  30.8035
  17  7.89359
  18  7.34174e-06
  19  0.236819
  20  0.194733
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.316e+01  1.733e+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.051e+00  1.947e-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:  8.483e-01  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 5.87e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/92997/likelihoodResults_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.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) = 6938.63771028
delta logL = 0.188399814417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6938.63748731
delta logL = 0.1886227819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3692       1.0000          .0000       10.000    
     3 'Normalizat'    .86906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       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=   6938.637     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      304 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.538        19.742        .37479E-03   -.13043E-05
   2  Index         2.3681        .53030        .81267E-02   -.10124E-04
   3  Normalizat    .86912        .22595        .31120E-03   -.15343E-04
   4  Prefactor     1.0328        .19451        .24743E-03   -.66072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5379
  Index      = 2.36814
  Normalizat = 0.86912
  Prefactor  = 1.03275
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.637     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.538        19.619        .14992E-04   -1.4639    
   2  Index         2.3681        .52695        .32507E-03   -.55433    
   3  Normalizat    .86912        .22616        .12448E-04   -.97554    
   4  Prefactor     1.0328        .19462        .98972E-05   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19703e-11
Minuit parameter uncertainties:
  1  19.6238
  2  0.528309
  3  0.226409
  4  0.19475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92997': 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) = 6938.63748353
delta logL = 0.188626566865

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.854e+01  1.962e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.368e+00  5.283e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.033e+00  1.947e-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:  8.691e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.37 +/- 0.53
Photon Flux (Free Index): 7.09e-08 +/- 5.20e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/92997/cmap_HighResolution_321235201_321494401_4FGL_J1300.4+1416_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='2.43e-05', photon_flux_error='5.87e-08', dlogl='1.89e-01', energy_flux='1.84e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-06 14:40:48.853640', photon_index_error2='0.53', photon_index2='2.37', ts='2.69', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.98e-05', EG='0.85', time_epoch_completed='1630964448.85', return_code='0', job_id='92997', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='5.20e-08', ts2='2.99', photon_index='2.74' WHERE bin_id='316' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:40:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 92997: <4FGL_J1300.4+1416_daily_bin316> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin316> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:05 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:07 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:07 2021
Terminated at Mon Sep  6 14:40:49 2021
Results reported at Mon Sep  6 14:40:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin316 195.12 14.2701 321235201 321494401 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

