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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin442
RA = 195.12, Dec = 14.2701
tmin = 353894401, tmax = 354153601
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='94204', job_status='RUN', time_executed='2021-09-06 14:33:26.589136', time_epoch_executed='1630964006.59' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94204/ft1_4FGL_J1300.4+1416_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94204/ft2_4FGL_J1300.4+1416_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94204/ft1_4FGL_J1300.4+1416_daily_bin442.fits outfile=/scratch/kocevski/94204/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin442.fits ra=195.12 dec=14.2701 rad=12.0 tmin=353894401.0 tmax=354153601.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.44
user 3.20
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94204/ft1_filtered_4FGL_J1300.4+1416_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/94204/ft2_4FGL_J1300.4+1416_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/94204/ltcube_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.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/94204/ft2_4FGL_J1300.4+1416_daily_bin442.fits
.....................!
real 12.16
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94204/ft1_filtered_4FGL_J1300.4+1416_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/94204/ft2_4FGL_J1300.4+1416_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/94204/ltcube_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.fits outfile=/scratch/kocevski/94204/expmap_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.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/94204/ltcube_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.fits
.....................!
real 191.77
user 186.25
sys 5.03

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/94204/ft1_filtered_4FGL_J1300.4+1416_daily_bin442.fits scfile=/scratch/kocevski/94204/ft2_4FGL_J1300.4+1416_daily_bin442.fits outfile=/scratch/kocevski/94204/cmap_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94204/ft1_filtered_4FGL_J1300.4+1416_daily_bin442.fits scfile=/scratch/kocevski/94204/ft2_4FGL_J1300.4+1416_daily_bin442.fits outfile=/scratch/kocevski/94204/cmap_HighResolution_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.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.74
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76565       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14102E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .36527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3779       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5284       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9328       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6939       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7013       1.0000         .10000E-03   10000.    
    13 'norm      '    17.102       1.0000         .10000E-03   10000.    
    14 'norm      '    7.9005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13649E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.215       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4875       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84576       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=   6329.024     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2722 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76611        2.9086        .12311E-01    .13471E-02
   2  Prefactor     .10031E-03    30.795        .14088    ** at limit **
   3  norm          .36524        .23227        .65206E-02    .58639E-03
   4  Prefactor     .10000E-03    53.527        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.6469        .90712E-02** at limit **
   6  Prefactor     .10000E-03    29.784        .90712E-02** at limit **
   7  norm          2.3780        1.9200        .66416E-02    .50564E-03
   8  Prefactor     3.5347        249.55        .53801E-02   -.49558E-04
   9  Prefactor     4.9327        5.1397        .45272E-02   -.95289E-04
  10  Prefactor     16.268        19.573        .24817E-02   -.15627E-02
  11  Prefactor     1.6800        37.669        .80841E-02   -.51659E-03
  12  norm          4.7012        5.1527        .46398E-02    .44730E-03
  13  norm          17.099        22.956        .24212E-02   -.10577E-02
  14  norm          7.9043        7.5167        .35663E-02   -.74480E-03
  15  Prefactor     .10000E-03    44.181        .90712E-02** at limit **
  16  Prefactor     .10000E-03    10.909        .90712E-02** at limit **
  17  norm          .10000E-03    9.6427        .90712E-02** at limit **
  18  Prefactor     16.214        48.917        .24866E-02    .66769E-04
  19  Normalizat    1.4877        .21210        .56849E-01   -.30628E-04
  20  Prefactor     .84551        .17385        .44310E-01   -.39992E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.766115
  Prefactor  = 0.000100313
  norm       = 0.365242
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37802
  Prefactor  = 3.53467
  Prefactor  = 4.93267
  Prefactor  = 16.2679
  Prefactor  = 1.68001
  norm       = 4.70116
  norm       = 17.0994
  norm       = 7.90426
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2142
  Normalizat = 1.48768
  Prefactor  = 0.845511
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.024     FROM HESSE     STATUS=OK           299 CALLS     3021 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76611        2.8948        .25324E-03   -1.5533    
   2  Prefactor     .10031E-03    31.556        .13812       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .36524        .22665        .29539E-04   -1.5587    
   4  Prefactor     .10000E-03    53.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3780        1.9107        .94797E-04   -1.5400    
   8  Prefactor     3.5347        236.32        .21520E-03   -1.5332    
   9  Prefactor     4.9327        5.1381        .17845E-03   -1.5264    
  10  Prefactor     16.268        18.727        .99269E-04   -1.4901    
  11  Prefactor     1.6800        36.157        .32336E-03   -1.5449    
  12  norm          4.7012        5.1499        .17883E-03   -1.5274    
  13  norm          17.099        22.925        .96850E-04   -1.4881    
  14  norm          7.9043        7.4779        .14265E-03   -1.5146    
  15  Prefactor     .10000E-03    45.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.7380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.214        48.919        .99464E-04   -1.4902    
  19  Normalizat    1.4877        .25102        .25138E-03   -.78125    
  20  Prefactor     .84551        .20473        .27393E-03   -.98072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15209e-08
Minuit parameter uncertainties:
  1  2.89537
  2  0.00628854
  3  0.226648
  4  0.000366224
  5  8.16439e-06
  6  0.00012707
  7  1.91071
  8  58.0428
  9  5.13858
  10  18.7338
  11  15.598
  12  5.15038
  13  22.9363
  14  7.47877
  15  0.000824194
  16  7.12977e-05
  17  3.596e-05
  18  49.0404
  19  0.251225
  20  0.204916
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.680e+00  1.560e+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.455e-01  2.049e-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.488e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/94204/likelihoodResults_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.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) = 6328.05495342
delta logL = 0.968723082981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6327.94518029
delta logL = 1.07849620613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0584       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5698       1.0000          .0000       10.000    
     3 'Normalizat'    1.3896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89894       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=   6327.945     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0550        12.677        .11933E-01    .41947E-03
   2  Index         5.5722        3.7435        .20275        .72468E-04
   3  Normalizat    1.3896        .50355E-01    .58398E-01   -.25696E-04
   4  Prefactor     .89898        .43117E-01    .44991E-01   -.94042E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05496
  Index      = 5.57221
  Normalizat = 1.38965
  Prefactor  = 0.898979
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.945     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0550        32.655        .62347E-04   -1.5503    
   2  Index         5.5722        7.7859        .74715E-02    .11469    
   3  Normalizat    1.3896        .21484        .25825E-03   -.80929    
   4  Prefactor     .89898        .17866        .26649E-03   -.96177    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3072e-07
Minuit parameter uncertainties:
  1  11.7453
  2  8.43303
  3  0.214977
  4  0.178776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94204': 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): 102
logL (Free Index) = 6327.94517964
delta logL = 1.07849685778

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.055e+00  1.175e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  5.572e+00  8.433e+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:  8.990e-01  1.788e-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.390e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 195.120 14.270
Photon Index (Free Index): 5.57 +/- 8.43
Photon Flux (Free Index): 9.31e-08 +/- 8.06e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.42e-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/94204/cmap_HighResolution_353894401_354153601_4FGL_J1300.4+1416_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='1.08e+00', photon_flux2='9.31e-08', job_status='DONE', time_completed='2021-09-06 14:44:12.774887', photon_index_error2='8.43', photon_index2='5.57', ts='0.01', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.42e-05', EG='1.49', time_epoch_completed='1630964652.77', return_code='0', job_id='94204', GAL2='0.90', EG2='1.39', return_code2='102', photon_flux_error2='8.06e-08', ts2='2.30', photon_index='2.74' WHERE bin_id='442' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 94204: <4FGL_J1300.4+1416_daily_bin442> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin442> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:40 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:41 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:41 2021
Terminated at Mon Sep  6 14:44:13 2021
Results reported at Mon Sep  6 14:44:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin442 195.12 14.2701 353894401 354153601 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 :                                   643.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

