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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin518
RA = 195.12, Dec = 14.2701
tmin = 373593601, tmax = 373852801
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='94312', job_status='RUN', time_executed='2021-09-06 14:34:15.011226', time_epoch_executed='1630964055.01' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94312/ft1_4FGL_J1300.4+1416_daily_bin518.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits


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

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

Done.
real 3.54
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94312/ft1_filtered_4FGL_J1300.4+1416_daily_bin518.fits" evtable="EVENTS" scfile=/scratch/kocevski/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits sctable="SC_DATA" outfile=/scratch/kocevski/94312/ltcube_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.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/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits
.....................!
real 12.39
user 11.91
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94312/ft1_filtered_4FGL_J1300.4+1416_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits sctable="SC_DATA" expcube=/scratch/kocevski/94312/ltcube_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.fits outfile=/scratch/kocevski/94312/expmap_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.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/94312/ltcube_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.fits
.....................!
real 190.34
user 185.22
sys 4.73

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/94312/ft1_filtered_4FGL_J1300.4+1416_daily_bin518.fits scfile=/scratch/kocevski/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits outfile=/scratch/kocevski/94312/cmap_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94312/ft1_filtered_4FGL_J1300.4+1416_daily_bin518.fits scfile=/scratch/kocevski/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits outfile=/scratch/kocevski/94312/cmap_HighResolution_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.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/94312/ft1_filtered_4FGL_J1300.4+1416_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/94312/ft2_4FGL_J1300.4+1416_daily_bin518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94312/Model_4FGL_J1300.4+1416_daily_bin518.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/94312/ft1_filtered_4FGL_J1300.4+1416_daily_bin518.fits....................!
real 55.80
user 54.38
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0162       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.390       1.0000         .10000E-03   10000.    
     7 'norm      '    22.293       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2995       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.715       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.797       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95401       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91149       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=   6285.769     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1985 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8639        2.6199        .21562E-07   -.76055E-06
   2  Prefactor     .10000E-03    12.320        .10508E-06** at limit **
   3  norm          3.0164        .47804        .43173E-08   -.15815E-03
   4  Prefactor     .10000E-03    35.629       -.10846E-06** at limit **
   5  Prefactor     16.991        11.020        .51075E-08    .28127E-05
   6  Prefactor     41.392        35.856       -.13299E-06    .54150E-05
   7  norm          22.294        3.4409        .92857E-08    .19372E-04
   8  Prefactor     5.5263        88.622       -.34615E-05   -.32660E-04
   9  Prefactor     .10000E-03    1.5786        .48496E-07** at limit **
  10  Prefactor     .10000E-03    6.5473       -.30501E-05** at limit **
  11  Prefactor     6.3007        14.214        .54422E-05    .19036E-04
  12  norm          .10000E-03    .78929        .34596E-07** at limit **
  13  norm          .10000E-03    5.3256        .22181E-07** at limit **
  14  norm          16.738        9.1614        .68980E-07   -.12211E-04
  15  Prefactor     15.716        11.940        .55528E-07   -.79659E-05
  16  Prefactor     .10000E-03    30.459        .60775E-06** at limit **
  17  norm          24.798        12.481        .73184E-07   -.99433E-05
  18  Prefactor     .10000E-03    14.898        .30188E-07** at limit **
  19  Normalizat    .95368        .20718       -.17892E-05    .72401E-04
  20  Prefactor     .91181        .17197        .48430E-06   -.48422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86386
  Prefactor  = 0.0001
  norm       = 3.01636
  Prefactor  = 0.0001
  Prefactor  = 16.9913
  Prefactor  = 41.3923
  norm       = 22.2937
  Prefactor  = 5.52627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.30068
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.7377
  Prefactor  = 15.716
  Prefactor  = 0.0001
  norm       = 24.7978
  Prefactor  = 0.0001
  Normalizat = 0.953676
  Prefactor  = 0.911807
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.769     FROM HESSE     STATUS=OK           295 CALLS     2280 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8639        2.6214        .10263E-03   -1.5315    
   2  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0164        .48038        .20909E-04   -1.5361    
   4  Prefactor     .10000E-03    35.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.991        11.015        .97168E-04   -1.4883    
   6  Prefactor     41.392        35.978        .62308E-04   -1.4420    
   7  norm          22.294        3.4432        .55779E-04   -1.4763    
   8  Prefactor     5.5263        90.235        .16966E-03   -1.5238    
   9  Prefactor     .10000E-03    1.5803        .97281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3007        14.327        .79965E-03   -1.5206    
  12  norm          .10000E-03    .79046        .68788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3264        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.738        9.1792        .97899E-04   -1.4890    
  15  Prefactor     15.716        11.950        .10103E-03   -1.4915    
  16  Prefactor     .10000E-03    30.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.798        12.504        .80444E-04   -1.4712    
  18  Prefactor     .10000E-03    14.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95368        .24420        .28921E-03   -.94599    
  20  Prefactor     .91181        .20299        .26097E-03   -.95730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26168e-10
Minuit parameter uncertainties:
  1  2.62151
  2  1.57151e-05
  3  0.480385
  4  6.5046e-05
  5  11.0162
  6  35.9964
  7  3.44323
  8  44.741
  9  4.60012e-07
  10  1.6475e-05
  11  14.3349
  12  3.52858e-07
  13  5.20691e-07
  14  9.18001
  15  11.9523
  16  8.90273e-05
  17  12.5055
  18  2.1689e-05
  19  0.244487
  20  0.203163
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.301e+00  1.433e+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.118e-01  2.032e-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:  9.537e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/94312/likelihoodResults_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.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) = 6284.9853669
delta logL = 0.783762834186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6284.94125155
delta logL = 0.827878186288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15792       1.0000         .10000E-03   10000.    
     2 'Index     '    6.7975       1.0000          .0000       10.000    
     3 'Normalizat'    .87607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96291       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=   6284.941     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      300 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15199        1.9653        .55415E-02    .20674E-02
   2  Index         6.8272        3.7086        .21680        .92991E-04
   3  Normalizat    .87671        .45518E-01    .67887E-01    .12098E-04
   4  Prefactor     .96230        .40489E-01    .45802E-01    .70766E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.151988
  Index      = 6.82715
  Normalizat = 0.876708
  Prefactor  = 0.962302
 **********
 **   18 **HESSE 
 **********

 FCN=   6284.941     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      335 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15199        5.1961        .25498E-03   -1.5630    
   2  Index         6.8272        8.4001        .83853E-02    .37410    
   3  Normalizat    .87671        .17275        .30034E-03   -.97283    
   4  Prefactor     .96230        .14997        .25486E-03   -.93997    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.77623e-08
Minuit parameter uncertainties:
  1  1.77694
  2  8.56791
  3  0.172864
  4  0.150036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94312': 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) = 6284.94122811
delta logL = 0.827901624597

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.520e-01  1.777e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  6.827e+00  8.568e+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.623e-01  1.500e-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.767e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 195.120 14.270
Photon Index (Free Index): 6.83 +/- 8.57
Photon Flux (Free Index): 6.85e-08 +/- 5.95e-08
Energy Flux (Free Index): 8.24e-06 +/- 8.56e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/94312/cmap_HighResolution_373593601_373852801_4FGL_J1300.4+1416_daily_bin518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-03', comment='SUCCESS', energy_flux2='8.24e-06', dlogl='8.28e-01', photon_flux2='6.85e-08', job_status='DONE', time_completed='2021-09-06 14:44:31.309912', photon_index_error2='8.57', photon_index2='6.83', ts='0.23', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='8.56e-06', EG='0.95', time_epoch_completed='1630964671.31', return_code='0', job_id='94312', GAL2='0.96', EG2='0.88', return_code2='102', photon_flux_error2='5.95e-08', ts2='2.03', photon_index='2.74' WHERE bin_id='518' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 94312: <4FGL_J1300.4+1416_daily_bin518> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin518 195.12 14.2701 373593601 373852801 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

