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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin955
RA = 195.12, Dec = 14.2701
tmin = 486864001, tmax = 487123201
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='97456', job_status='RUN', time_executed='2021-09-06 14:43:24.343115', time_epoch_executed='1630964604.34' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97456/ft1_4FGL_J1300.4+1416_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97456/ft2_4FGL_J1300.4+1416_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97456/ft1_4FGL_J1300.4+1416_daily_bin955.fits outfile=/scratch/kocevski/97456/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin955.fits ra=195.12 dec=14.2701 rad=12.0 tmin=486864001.0 tmax=487123201.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.57
user 3.34
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97456/ft1_filtered_4FGL_J1300.4+1416_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/97456/ft2_4FGL_J1300.4+1416_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/97456/ltcube_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.fits outfile=/scratch/kocevski/97456/expmap_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.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/97456/ltcube_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.fits
.....................!
real 194.02
user 187.79
sys 5.64

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/97456/ft1_filtered_4FGL_J1300.4+1416_daily_bin955.fits scfile=/scratch/kocevski/97456/ft2_4FGL_J1300.4+1416_daily_bin955.fits outfile=/scratch/kocevski/97456/cmap_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97456/ft1_filtered_4FGL_J1300.4+1416_daily_bin955.fits scfile=/scratch/kocevski/97456/ft2_4FGL_J1300.4+1416_daily_bin955.fits outfile=/scratch/kocevski/97456/cmap_HighResolution_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .89535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.507       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.706       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.230       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4810       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.246       1.0000         .10000E-03   10000.    
    12 'norm      '    .10741E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.479       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19975E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3713       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78640       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=   6180.021     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2230 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0082        4.4202        .81860E-06   -.56288E-05
   2  Prefactor     .10001E-03    18.802       -.21933E-05** at limit **
   3  norm          .89533        .35512        .47621E-07   -.21653E-03
   4  Prefactor     18.398        110.34        .14139E-04    .24089E-04
   5  Prefactor     .10000E-03    5.5844        .17661E-05** at limit **
   6  Prefactor     35.690        34.475       -.23500E-05   -.45724E-03
   7  norm          5.6853        2.0012        .33621E-07   -.13618E-03
   8  Prefactor     28.212        68.167       -.92070E-05    .59900E-04
   9  Prefactor     .10000E-03    7.5019        .11302E-05** at limit **
  10  Prefactor     1.4930        51.180        .26739E-04   -.12799E-03
  11  Prefactor     15.240        13.163       -.98449E-06    .35720E-04
  12  norm          .10000E-03    6.4452       -.24693E-06** at limit **
  13  norm          19.442        25.572        .85705E-06    .32786E-04
  14  norm          1.1034        6.0508       -.14289E-05   -.19994E-03
  15  Prefactor     5.8629        9.8127        .16959E-05    .25849E-04
  16  Prefactor     .10228E-03    22.200        .40452E-05** at limit **
  17  norm          2.7639        6.2853        .55809E-05    .17239E-03
  18  Prefactor     .10000E-03    13.495        .18721E-07** at limit **
  19  Normalizat    1.3712        .21164       -.43734E-05   -.38296E-03
  20  Prefactor     .78638        .16922        .20957E-05   -.74932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00821
  Prefactor  = 0.000100005
  norm       = 0.895329
  Prefactor  = 18.3984
  Prefactor  = 0.0001
  Prefactor  = 35.6904
  norm       = 5.68531
  Prefactor  = 28.2123
  Prefactor  = 0.0001
  Prefactor  = 1.49299
  Prefactor  = 15.2396
  norm       = 0.0001
  norm       = 19.4416
  norm       = 1.10343
  Prefactor  = 5.86295
  Prefactor  = 0.000102284
  norm       = 2.76389
  Prefactor  = 0.0001
  Normalizat = 1.37118
  Prefactor  = 0.786378
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.021     FROM HESSE     STATUS=OK           307 CALLS     2537 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0082        4.3948        .23077E-03   -1.5425    
   2  Prefactor     .10001E-03    18.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .89533        .35350        .28118E-04   -1.5519    
   4  Prefactor     18.398        109.60        .93101E-04   -1.4850    
   5  Prefactor     .10000E-03    22.411        .34759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.690        33.780        .67067E-04   -1.4512    
   7  norm          5.6853        1.9997        .63691E-04   -1.5231    
   8  Prefactor     28.212        68.262        .75403E-04   -1.4645    
   9  Prefactor     .10000E-03    132.40        .40029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4930        52.474        .17633E-02   -1.5464    
  11  Prefactor     15.240        13.181        .10258E-03   -1.4927    
  12  norm          .10000E-03    6.7263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.442        25.365        .90751E-04   -1.4826    
  14  norm          1.1034        5.7407        .34412E-03   -1.5498    
  15  Prefactor     5.8629        9.7913        .82922E-03   -1.5224    
  16  Prefactor     .10228E-03    22.900        .12450       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7639        6.1654        .12237E-02   -1.5375    
  18  Prefactor     .10000E-03    13.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3712        .24146        .25090E-03   -.81466    
  20  Prefactor     .78638        .19713        .27228E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.044e-09
Minuit parameter uncertainties:
  1  4.39546
  2  0.000619298
  3  0.353504
  4  90.0581
  5  0.000115985
  6  33.7985
  7  1.9997
  8  68.452
  9  4.47273e-05
  10  17.7186
  11  13.1838
  12  3.88987e-05
  13  25.3789
  14  5.03423
  15  9.79401
  16  0.0144702
  17  6.16679
  18  3.69114e-06
  19  0.241655
  20  0.197306
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.524e+01  1.318e+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.864e-01  1.973e-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.371e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.05e-05

TS (Fixed Index): 2.64
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/97456/likelihoodResults_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.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) = 6179.90922583
delta logL = 0.111681983633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6179.90713404
delta logL = 0.11377376894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.694       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3833       1.0000          .0000       10.000    
     3 'Normalizat'    1.3856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77804       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=   6179.907     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      228 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 30.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.693        11.879       -.32175E-05    .12904E-02
   2  Index         2.3837        .51354        .94938E-05    .44785E-03
   3  Normalizat    1.3858        .19685       -.12524E-06   -.13809E-03
   4  Prefactor     .77816        .16689        .38711E-06   -.91168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6927
  Index      = 2.38373
  Normalizat = 1.38576
  Prefactor  = 0.778165
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.907     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.693        13.542        .10110E-03   -1.4915    
   2  Index         2.3837        .71278        .10401E-01   -.55066    
   3  Normalizat    1.3858        .23112        .24978E-03   -.81041    
   4  Prefactor     .77816        .19509        .27352E-03   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7457e-09
Minuit parameter uncertainties:
  1  13.5442
  2  0.716151
  3  0.231296
  4  0.195263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97456': 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) = 6179.90713055
delta logL = 0.113777262217

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.569e+01  1.354e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.384e+00  7.162e-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.782e-01  1.953e-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.386e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.86
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.38 +/- 0.72
Photon Flux (Free Index): 3.94e-08 +/- 4.30e-08
Energy Flux (Free Index): 1.32e-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/97456/cmap_HighResolution_486864001_487123201_4FGL_J1300.4+1416_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.32e-05', photon_flux_error='4.47e-08', dlogl='1.14e-01', energy_flux='1.21e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-06 14:54:41.379508', photon_index_error2='0.72', photon_index2='2.38', ts='2.64', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.19e-05', EG='1.37', time_epoch_completed='1630965281.38', return_code='0', job_id='97456', GAL2='0.78', EG2='1.39', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.30e-08', ts2='2.86', photon_index='2.74' WHERE bin_id='955' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:54:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 97456: <4FGL_J1300.4+1416_daily_bin955> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin955> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:37 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:38 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:40:38 2021
Terminated at Mon Sep  6 14:54:44 2021
Results reported at Mon Sep  6 14:54:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin955 195.12 14.2701 486864001 487123201 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 :                                   629.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            847 sec.

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

