/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 220 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_bin611
RA = 195.12, Dec = 14.2701
tmin = 397699201, tmax = 397958401
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='95585', job_status='RUN', time_executed='2021-09-06 14:39:18.517960', time_epoch_executed='1630964358.52' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95585

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95585/ft1_4FGL_J1300.4+1416_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95585/ft2_4FGL_J1300.4+1416_daily_bin611.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95585/ft2_4FGL_J1300.4+1416_daily_bin611.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/95585/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/95585/ft1_filtered_4FGL_J1300.4+1416_daily_bin611.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95585/ft1_filtered_4FGL_J1300.4+1416_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/95585/ft2_4FGL_J1300.4+1416_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/95585/ltcube_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.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/95585/ft2_4FGL_J1300.4+1416_daily_bin611.fits
.....................!
real 12.31
user 11.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95585/ft1_filtered_4FGL_J1300.4+1416_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/95585/ft2_4FGL_J1300.4+1416_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/95585/ltcube_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.fits outfile=/scratch/kocevski/95585/expmap_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.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/95585/ltcube_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.fits
.....................!
real 190.44
user 185.98
sys 4.10

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/95585/ft1_filtered_4FGL_J1300.4+1416_daily_bin611.fits scfile=/scratch/kocevski/95585/ft2_4FGL_J1300.4+1416_daily_bin611.fits outfile=/scratch/kocevski/95585/cmap_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95585/ft1_filtered_4FGL_J1300.4+1416_daily_bin611.fits scfile=/scratch/kocevski/95585/ft2_4FGL_J1300.4+1416_daily_bin611.fits outfile=/scratch/kocevski/95585/cmap_HighResolution_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.585       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.443       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9616       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7048       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1800       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0344       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=   6243.762     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1747 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4871       -.57636E-08** at limit **
   2  Prefactor     .10000E-03    16.256        .54164E-05** at limit **
   3  norm          1.9878        .41104       -.16418E-08    .90885E-04
   4  Prefactor     .10000E-03    65.026       -.83494E-05** at limit **
   5  Prefactor     .10000E-03    5.9080       -.43368E-07** at limit **
   6  Prefactor     24.584        22.679       -.37844E-06    .18283E-04
   7  norm          2.2334        1.5545       -.19470E-07   -.92498E-04
   8  Prefactor     .10000E-03    20.968       -.18997E-04** at limit **
   9  Prefactor     .10000E-03    2.9119        .17245E-07** at limit **
  10  Prefactor     .10000E-03    13.227       -.74738E-05** at limit **
  11  Prefactor     27.442        16.289        .15206E-06    .14841E-03
  12  norm          4.9616        3.2520        .13766E-07    .51209E-04
  13  norm          .10000E-03    6.6363        .18357E-06** at limit **
  14  norm          5.7043        7.6352       -.10459E-05   -.29040E-03
  15  Prefactor     .10000E-03    2.8762        .58429E-08** at limit **
  16  Prefactor     .10000E-03    14.991        .82242E-05** at limit **
  17  norm          .10000E-03    13.820        .24095E-05** at limit **
  18  Prefactor     .10000E-03    29.436        .15531E-04** at limit **
  19  Normalizat    1.1801        .20646        .37431E-06    .31288E-04
  20  Prefactor     1.0343        .17338       -.38177E-07    .35632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5837
  norm       = 2.23341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4423
  norm       = 4.9616
  norm       = 0.0001
  norm       = 5.70426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18006
  Prefactor  = 1.03432
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.762     FROM HESSE     STATUS=OK           287 CALLS     2034 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4813        .18745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9878        .41237        .22175E-04   -1.5426    
   4  Prefactor     .10000E-03    65.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.584        22.675        .80788E-04   -1.4716    
   7  norm          2.2334        1.5535        .79590E-04   -1.5409    
   8  Prefactor     .10000E-03    20.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9232        .13167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.442        16.376        .76474E-04   -1.4660    
  12  norm          4.9616        3.2558        .11213E-03   -1.5262    
  13  norm          .10000E-03    6.6386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7043        7.6515        .16817E-03   -1.5230    
  15  Prefactor     .10000E-03    2.8793        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1801        .24538        .27183E-03   -.87221    
  20  Prefactor     1.0343        .20527        .25002E-03   -.91594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17169e-10
Minuit parameter uncertainties:
  1  1.65848e-06
  2  2.91108e-06
  3  0.412367
  4  8.90778e-07
  5  2.61585e-06
  6  22.6834
  7  1.55352
  8  1.57471e-05
  9  2.90843e-07
  10  3.68125e-05
  11  16.3786
  12  3.25595
  13  3.04636e-06
  14  7.65286
  15  4.41938e-07
  16  3.54519e-06
  17  6.12461e-05
  18  1.34392e-05
  19  0.245621
  20  0.205429
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.034e+00  2.054e-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.180e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 9.31e-08 +/- 5.55e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.30e-05

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) = 6243.0816493
delta logL = 0.680089948349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6243.07984182
delta logL = 0.681897428932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.083       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6040       1.0000          .0000       10.000    
     3 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0680       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6243.080     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      304 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.083        18.967        .49935E-03   -.91432E-04
   2  Index         3.6042        1.0380        .63159E-02    .17683E-04
   3  Normalizat    1.1282        .24266        .27702E-03    .22695E-04
   4  Prefactor     1.0684        .20771        .24665E-03    .12860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0831
  Index      = 3.60416
  Normalizat = 1.12819
  Prefactor  = 1.06842
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.083        15.972        .19974E-04   -1.4906    
   2  Index         3.6042        .87538        .25263E-03   -.28293    
   3  Normalizat    1.1282        .24286        .11081E-04   -.88852    
   4  Prefactor     1.0684        .20762        .98659E-05   -.90482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86871e-11
Minuit parameter uncertainties:
  1  15.9759
  2  0.880306
  3  0.243105
  4  0.207778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95585': 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) = 6243.0798401
delta logL = 0.681899142293

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.608e+01  1.598e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.604e+00  8.803e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.068e+00  2.078e-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.128e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.60 +/- 0.88
Photon Flux (Free Index): 1.32e-07 +/- 7.06e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.13e-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/95585/cmap_HighResolution_397699201_397958401_4FGL_J1300.4+1416_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.31e-08', energy_flux2='2.15e-05', photon_flux_error='5.55e-08', dlogl='6.82e-01', energy_flux='2.18e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-06 14:48:07.202052', photon_index_error2='0.88', photon_index2='3.60', ts='4.44', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.18', time_epoch_completed='1630964887.2', return_code='0', job_id='95585', GAL2='1.07', EG2='1.13', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='7.06e-08', ts2='5.92', photon_index='2.74' WHERE bin_id='611' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:48:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 95585: <4FGL_J1300.4+1416_daily_bin611> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin611> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:26 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:28 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:35:28 2021
Terminated at Mon Sep  6 14:48:08 2021
Results reported at Mon Sep  6 14:48:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin611 195.12 14.2701 397699201 397958401 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 :                                   526.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

