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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin292
RA = 195.12, Dec = 14.2701
tmin = 315014401, tmax = 315273601
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='92973', job_status='RUN', time_executed='2021-09-06 14:28:55.756572', time_epoch_executed='1630963735.76' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92973/ft1_4FGL_J1300.4+1416_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92973/ft2_4FGL_J1300.4+1416_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92973/ft1_4FGL_J1300.4+1416_daily_bin292.fits outfile=/scratch/kocevski/92973/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin292.fits ra=195.12 dec=14.2701 rad=12.0 tmin=315014401.0 tmax=315273601.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.60
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92973/ft2_4FGL_J1300.4+1416_daily_bin292.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/92973/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/92973/ft1_filtered_4FGL_J1300.4+1416_daily_bin292.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.55
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92973/ft1_filtered_4FGL_J1300.4+1416_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/92973/ft2_4FGL_J1300.4+1416_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/92973/ltcube_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.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/92973/ft2_4FGL_J1300.4+1416_daily_bin292.fits
.....................!
real 13.90
user 13.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92973/ft1_filtered_4FGL_J1300.4+1416_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/92973/ft2_4FGL_J1300.4+1416_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/92973/ltcube_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.fits outfile=/scratch/kocevski/92973/expmap_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.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/92973/ltcube_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.fits
.....................!
real 190.28
user 185.25
sys 4.06

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92973/ft1_filtered_4FGL_J1300.4+1416_daily_bin292.fits scfile=/scratch/kocevski/92973/ft2_4FGL_J1300.4+1416_daily_bin292.fits outfile=/scratch/kocevski/92973/cmap_HighResolution_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.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/92973/ft1_filtered_4FGL_J1300.4+1416_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/92973/ft2_4FGL_J1300.4+1416_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92973/Model_4FGL_J1300.4+1416_daily_bin292.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/92973/ft1_filtered_4FGL_J1300.4+1416_daily_bin292.fits.....................!
real 55.60
user 54.34
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5430       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8558       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0237       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.629       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4082       1.0000         .10000E-03   10000.    
    13 'norm      '    33.446       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0313       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.438       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3414       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75590       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=   6518.855     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2028 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8366        3.6224       -.67391E-07   -.47950E-04
   2  Prefactor     .10000E-03    16.268        .12113E-06** at limit **
   3  norm          5.5429        .65060       -.20512E-08    .29279E-04
   4  Prefactor     .10000E-03    51.532       -.30294E-08** at limit **
   5  Prefactor     9.5075        8.4456       -.18170E-06   -.15907E-05
   6  Prefactor     .10000E-03    17.166        .54386E-08** at limit **
   7  norm          1.8555        1.7029       -.23919E-08   -.56812E-04
   8  Prefactor     .10000E-03    15.005       -.66997E-07** at limit **
   9  Prefactor     .10000E-03    2.3282        .84019E-08** at limit **
  10  Prefactor     5.0152        12.570       -.11681E-05   -.23322E-04
  11  Prefactor     12.630        14.687        .18604E-05    .17476E-04
  12  norm          4.4075        3.5571        .44687E-08   -.99699E-04
  13  norm          33.440        26.096       -.67135E-06   -.35665E-05
  14  norm          5.7938        6.3698       -.24746E-07   -.91686E-05
  15  Prefactor     .10000E-03    10.275        .21750E-07** at limit **
  16  Prefactor     .10000E-03    27.824        .20332E-06** at limit **
  17  norm          4.0260        3.3008        .15957E-06   -.49548E-03
  18  Prefactor     30.430        55.833       -.59384E-05   -.62714E-05
  19  Normalizat    1.3414        .20630        .81227E-08    .12706E-04
  20  Prefactor     .75616        .16743        .39944E-06   -.81565E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83663
  Prefactor  = 0.0001
  norm       = 5.54286
  Prefactor  = 0.0001
  Prefactor  = 9.50748
  Prefactor  = 0.0001
  norm       = 1.85545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.01523
  Prefactor  = 12.6304
  norm       = 4.40754
  norm       = 33.4401
  norm       = 5.79383
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.02596
  Prefactor  = 30.4304
  Normalizat = 1.34139
  Prefactor  = 0.756164
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.855     FROM HESSE     STATUS=OK           307 CALLS     2335 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8366        3.6212        .16779E-03   -1.5371    
   2  Prefactor     .10000E-03    16.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5429        .65217        .21554E-04   -1.5237    
   4  Prefactor     .10000E-03    51.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5075        8.4479        .12995E-03   -1.5091    
   6  Prefactor     .10000E-03    17.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8555        1.6941        .96902E-04   -1.5436    
   8  Prefactor     .10000E-03    15.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3324        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0152        12.640        .17941E-03   -1.5260    
  11  Prefactor     12.630        14.712        .11272E-03   -1.4997    
  12  norm          4.4075        3.5683        .66480E-03   -1.5288    
  13  norm          33.440        26.081        .69289E-04   -1.4551    
  14  norm          5.7938        6.8308        .16686E-03   -1.5227    
  15  Prefactor     .10000E-03    16.014        .71902E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0260        10.277        .10042E-02   -1.5307    
  18  Prefactor     30.430        55.881        .72623E-04   -1.4604    
  19  Normalizat    1.3414        .25286        .26471E-03   -.82339    
  20  Prefactor     .75616        .20153        .28554E-03   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43272e-10
Minuit parameter uncertainties:
  1  3.62143
  2  8.90152e-07
  3  0.652169
  4  1.19404e-06
  5  8.44895
  6  5.63527e-07
  7  1.69416
  8  2.84157e-06
  9  5.05313e-07
  10  12.6469
  11  14.7159
  12  3.5685
  13  26.0898
  14  6.83175
  15  0.000319291
  16  3.58638e-07
  17  10.2817
  18  55.977
  19  0.253096
  20  0.201721
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.263e+01  1.472e+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:  7.562e-01  2.017e-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.341e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/92973/likelihoodResults_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.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) = 6518.84945346
delta logL = 0.00584588077527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6518.84890354
delta logL = 0.00639579783456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6464       1.0000          .0000       10.000    
     3 'Normalizat'    1.3443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75423       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=   6518.849     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.065        15.280        .11082E-03   -.15901E-02
   2  Index         2.6463        .80171        .11801E-01   -.43782E-03
   3  Normalizat    1.3440        .24108        .26449E-03    .29232E-03
   4  Prefactor     .75450        .20018        .28581E-03    .27609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0652
  Index      = 2.64631
  Normalizat = 1.34398
  Prefactor  = 0.754503
 **********
 **   18 **HESSE 
 **********

 FCN=   6518.849     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.065        15.123        .22165E-04   -1.4985    
   2  Index         2.6463        .79344        .47204E-03   -.49013    
   3  Normalizat    1.3440        .24138        .52897E-04   -.82263    
   4  Prefactor     .75450        .20035        .11433E-04   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32114e-09
Minuit parameter uncertainties:
  1  15.1273
  2  0.797784
  3  0.24158
  4  0.200547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92973': 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) = 6518.84890256
delta logL = 0.00639677815161

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.307e+01  1.513e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.646e+00  7.978e-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:  7.545e-01  2.005e-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.344e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.65 +/- 0.80
Photon Flux (Free Index): 4.08e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.19e-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/92973/cmap_HighResolution_315014401_315273601_4FGL_J1300.4+1416_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='1.03e-05', photon_flux_error='4.99e-08', dlogl='6.40e-03', energy_flux='1.00e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-09-06 14:39:11.786982', photon_index_error2='0.80', photon_index2='2.65', ts='1.11', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.19e-05', EG='1.34', time_epoch_completed='1630964351.79', return_code='0', job_id='92973', GAL2='0.75', EG2='1.34', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.05e-08', ts2='1.10', photon_index='2.74' WHERE bin_id='292' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 92973: <4FGL_J1300.4+1416_daily_bin292> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin292> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:02 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:26:04 2021
Terminated at Mon Sep  6 14:39:12 2021
Results reported at Mon Sep  6 14:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin292 195.12 14.2701 315014401 315273601 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 :                                   606.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

