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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin604
RA = 195.12, Dec = 14.2701
tmin = 395884801, tmax = 396144001
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='95575', job_status='RUN', time_executed='2021-09-06 14:39:00.069370', time_epoch_executed='1630964340.07' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95575

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95575/ft1_4FGL_J1300.4+1416_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95575/ft2_4FGL_J1300.4+1416_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95575/ft1_4FGL_J1300.4+1416_daily_bin604.fits outfile=/scratch/kocevski/95575/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin604.fits ra=195.12 dec=14.2701 rad=12.0 tmin=395884801.0 tmax=396144001.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.28
user 3.08
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95575/ft1_filtered_4FGL_J1300.4+1416_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/95575/ft2_4FGL_J1300.4+1416_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/95575/ltcube_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.fits outfile=/scratch/kocevski/95575/expmap_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.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/95575/ltcube_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.fits
.....................!
real 190.46
user 184.77
sys 5.27

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/95575/ft1_filtered_4FGL_J1300.4+1416_daily_bin604.fits scfile=/scratch/kocevski/95575/ft2_4FGL_J1300.4+1416_daily_bin604.fits outfile=/scratch/kocevski/95575/cmap_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95575/ft1_filtered_4FGL_J1300.4+1416_daily_bin604.fits scfile=/scratch/kocevski/95575/ft2_4FGL_J1300.4+1416_daily_bin604.fits outfile=/scratch/kocevski/95575/cmap_HighResolution_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1240       1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.074       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7804       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12202E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3069       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.186       1.0000         .10000E-03   10000.    
    17 'norm      '    .38349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0751       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97998       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=   5974.948     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1782 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1244        3.2888        .23766E-07    .23967E-05
   2  Prefactor     75.080        46.616       -.95229E-06    .11022E-04
   3  norm          1.7804        .39155        .57497E-08    .19844E-04
   4  Prefactor     .10000E-03    54.741        .24835E-05** at limit **
   5  Prefactor     .10000E-03    3.1714        .22342E-07** at limit **
   6  Prefactor     .10000E-03    21.359        .24215E-06** at limit **
   7  norm          1.5899        1.5508        .38967E-07    .16285E-04
   8  Prefactor     73.673        50.630        .17266E-05   -.20388E-04
   9  Prefactor     2.6810        4.2935        .21882E-05    .43745E-03
  10  Prefactor     .10000E-03    5.6609       -.10548E-06** at limit **
  11  Prefactor     18.979        15.980       -.49123E-06    .16912E-04
  12  norm          .10000E-03    1.7531       -.10528E-07** at limit **
  13  norm          .10000E-03    6.0768        .46463E-07** at limit **
  14  norm          4.2649        7.3412       -.38970E-06   -.20259E-03
  15  Prefactor     .10000E-03    4.9140        .88072E-09** at limit **
  16  Prefactor     20.187        23.051       -.27610E-06    .64810E-05
  17  norm          .49390        20.276       -.39319E-05    .26313E-03
  18  Prefactor     .10000E-03    17.763       -.15982E-06** at limit **
  19  Normalizat    1.0750        .19551       -.77877E-06   -.96165E-04
  20  Prefactor     .97997        .16932        .22802E-06   -.67490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.12435
  Prefactor  = 75.0799
  norm       = 1.78042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58994
  Prefactor  = 73.6732
  Prefactor  = 2.68096
  Prefactor  = 0.0001
  Prefactor  = 18.9791
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.26491
  Prefactor  = 0.0001
  Prefactor  = 20.1872
  norm       = 0.493905
  Prefactor  = 0.0001
  Normalizat = 1.07497
  Prefactor  = 0.979973
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.948     FROM HESSE     STATUS=OK           291 CALLS     2073 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1244        3.2898        .10872E-03   -1.5255    
   2  Prefactor     75.080        46.483        .46341E-04   -1.3973    
   3  norm          1.7804        .39278        .21754E-04   -1.5441    
   4  Prefactor     .10000E-03    54.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1757        .13444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5899        1.5417        .91803E-04   -1.5456    
   8  Prefactor     73.673        50.557        .46772E-04   -1.3989    
   9  Prefactor     2.6810        4.5145        .10363E-02   -1.5380    
  10  Prefactor     .10000E-03    5.6750        .17950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.979        15.989        .91953E-04   -1.4836    
  12  norm          .10000E-03    1.7849        .99913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2649        7.9116        .19412E-03   -1.5295    
  15  Prefactor     .10000E-03    4.9278        .16733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.187        23.047        .89148E-04   -1.4809    
  17  norm          .49390        71.067        .39996E-02   -1.5567    
  18  Prefactor     .10000E-03    17.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0750        .23249        .26337E-03   -.90559    
  20  Prefactor     .97997        .19994        .24624E-03   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03721e-09
Minuit parameter uncertainties:
  1  3.28994
  2  46.5056
  3  0.392784
  4  5.10187e-05
  5  1.02174e-07
  6  2.07977e-05
  7  1.54175
  8  50.5863
  9  4.51511
  10  1.31897e-05
  11  15.9931
  12  1.46965e-06
  13  4.69292e-06
  14  7.91355
  15  7.45569e-07
  16  23.057
  17  11.8623
  18  4.96812e-06
  19  0.232711
  20  0.200088
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.898e+01  1.599e+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.800e-01  2.001e-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.075e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 5.42e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/95575/likelihoodResults_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.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) = 5974.8885167
delta logL = 0.0595688599624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5974.88536004
delta logL = 0.0627255123545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.758       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0461       1.0000          .0000       10.000    
     3 'Normalizat'    1.0618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98980       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=   5974.885     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      299 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.768        19.074        .50448E-03    .39455E-04
   2  Index         3.0469        1.0252        .86983E-02    .25018E-03
   3  Normalizat    1.0619        .22724        .26478E-03   -.43365E-05
   4  Prefactor     .98958        .20112        .24520E-03   -.30137E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.768
  Index      = 3.04695
  Normalizat = 1.06187
  Prefactor  = 0.989575
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.885     FROM HESSE     STATUS=OK            27 CALLS      326 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.768        17.720        .10090E-03   -1.4914    
   2  Index         3.0469        .95282        .17397E-02   -.40129    
   3  Normalizat    1.0619        .22748        .10591E-04   -.90985    
   4  Prefactor     .98958        .20112        .98081E-05   -.93078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09218e-12
Minuit parameter uncertainties:
  1  17.7259
  2  0.959761
  3  0.227685
  4  0.20127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95575': 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) = 5974.88535689
delta logL = 0.0627286638346

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.577e+01  1.773e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.047e+00  9.598e-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:  9.896e-01  2.013e-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.062e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.05 +/- 0.96
Photon Flux (Free Index): 7.20e-08 +/- 5.96e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.20e-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/95575/cmap_HighResolution_395884801_396144001_4FGL_J1300.4+1416_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='1.40e-05', photon_flux_error='5.42e-08', dlogl='6.27e-02', energy_flux='1.51e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-09-06 14:48:31.743103', photon_index_error2='0.96', photon_index2='3.05', ts='1.82', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.20e-05', EG='1.07', time_epoch_completed='1630964911.74', return_code='0', job_id='95575', GAL2='0.99', EG2='1.06', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.96e-08', ts2='1.95', photon_index='2.74' WHERE bin_id='604' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 95575: <4FGL_J1300.4+1416_daily_bin604> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin604 195.12 14.2701 395884801 396144001 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 :                                   571.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

