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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin950
RA = 195.12, Dec = 14.2701
tmin = 485568001, tmax = 485827201
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='97449', job_status='RUN', time_executed='2021-09-06 14:44:33.323963', time_epoch_executed='1630964673.32' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97449/ft1_4FGL_J1300.4+1416_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97449/ft2_4FGL_J1300.4+1416_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97449/ft1_4FGL_J1300.4+1416_daily_bin950.fits outfile=/scratch/kocevski/97449/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin950.fits ra=195.12 dec=14.2701 rad=12.0 tmin=485568001.0 tmax=485827201.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.94
user 3.71
sys 0.18

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97449/ft1_filtered_4FGL_J1300.4+1416_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/97449/ft2_4FGL_J1300.4+1416_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/97449/ltcube_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.fits outfile=/scratch/kocevski/97449/expmap_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.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/97449/ltcube_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.fits
.....................!
real 190.41
user 184.99
sys 4.55

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/97449/ft1_filtered_4FGL_J1300.4+1416_daily_bin950.fits scfile=/scratch/kocevski/97449/ft2_4FGL_J1300.4+1416_daily_bin950.fits outfile=/scratch/kocevski/97449/cmap_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97449/ft1_filtered_4FGL_J1300.4+1416_daily_bin950.fits scfile=/scratch/kocevski/97449/ft2_4FGL_J1300.4+1416_daily_bin950.fits outfile=/scratch/kocevski/97449/cmap_HighResolution_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.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.56
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5302       1.0000         .10000E-03   10000.    
     3 'norm      '    .58884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.432       1.0000         .10000E-03   10000.    
    12 'norm      '    .93830E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    25.508       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.177       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0513       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76671       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5936.472     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1804 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4668        .90712E-02** at limit **
   2  Prefactor     1.5312        47.517        .86261E-02    .11424E-03
   3  norm          .58879        .30138        .65168E-02    .55613E-03
   4  Prefactor     .10000E-03    130.43        .90712E-02** at limit **
   5  Prefactor     12.647        11.540        .28154E-02   -.35699E-03
   6  Prefactor     .10000E-03    45.825        .90712E-02** at limit **
   7  norm          2.1128        1.5112        .70950E-02    .20643E-03
   8  Prefactor     .10000E-03    25.295        .90712E-02** at limit **
   9  Prefactor     10.153        9.5120        .31439E-02    .49844E-03
  10  Prefactor     .10000E-03    38.979        .90712E-02** at limit **
  11  Prefactor     18.418        18.198        .23323E-02    .13334E-02
  12  norm          .10004E-03    2.6028        .70389E-01** at limit **
  13  norm          25.508        21.402        .19829E-02    .12599E-02
  14  norm          .10000E-03    5.2291        .90712E-02** at limit **
  15  Prefactor     .10000E-03    4.8380        .90712E-02** at limit **
  16  Prefactor     10.177        24.917        .31400E-02   -.81184E-04
  17  norm          6.0507        9.2947        .40805E-02    .19885E-03
  18  Prefactor     .10000E-03    13.126        .90712E-02** at limit **
  19  Normalizat    .76699        .19953        .69416E-01   -.12855E-04
  20  Prefactor     1.2756        .17158        .49424E-01   -.46399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.53117
  norm       = 0.588794
  Prefactor  = 0.000100001
  Prefactor  = 12.6468
  Prefactor  = 0.000100001
  norm       = 2.11282
  Prefactor  = 0.0001
  Prefactor  = 10.1535
  Prefactor  = 0.0001
  Prefactor  = 18.4182
  norm       = 0.000100038
  norm       = 25.5079
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1773
  norm       = 6.05071
  Prefactor  = 0.0001
  Normalizat = 0.76699
  Prefactor  = 1.27562
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.472     FROM HESSE     STATUS=OK           299 CALLS     2103 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4833        .91111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5312        47.982        .34504E-03   -1.5460    
   3  norm          .58879        .29874        .29074E-04   -1.5555    
   4  Prefactor     .10000E-03    130.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.647        11.535        .11262E-03   -1.4997    
   6  Prefactor     .10000E-03    46.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1128        1.5106        .77242E-04   -1.5417    
   8  Prefactor     .10000E-03    25.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.153        9.5243        .12575E-03   -1.5071    
  10  Prefactor     .10000E-03    40.312        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.418        18.205        .93290E-04   -1.4849    
  12  norm          .10004E-03    5.5726        .40510E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.508        21.409        .79316E-04   -1.4697    
  14  norm          .10000E-03    5.2894        .17171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8629        .16549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.177        24.947        .12560E-03   -1.5070    
  17  norm          6.0507        9.2795        .16322E-03   -1.5216    
  18  Prefactor     .10000E-03    13.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .76699        .23581        .30717E-03   -1.0131    
  20  Prefactor     1.2756        .20374        .21849E-03   -.84035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57974e-09
Minuit parameter uncertainties:
  1  1.80079e-06
  2  17.1573
  3  0.29874
  4  0.000742582
  5  11.5372
  6  0.000417478
  7  1.51062
  8  6.80414e-05
  9  9.52568
  10  0.000192385
  11  18.2103
  12  0.000923077
  13  21.4159
  14  4.66141e-06
  15  2.91964e-06
  16  24.973
  17  9.28167
  18  1.91188e-05
  19  0.236128
  20  0.203862
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.842e+01  1.821e+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.276e+00  2.039e-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:  7.670e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 6.17e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/97449/likelihoodResults_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.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) = 5936.46864276
delta logL = 0.00362329325253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5936.46782621
delta logL = 0.00443984601407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.140       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6693       1.0000          .0000       10.000    
     3 'Normalizat'    .76980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2733       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=   5936.468     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.141        20.258        .91549E-04   -.24787E-03
   2  Index         2.6694        .72424        .93669E-02   -.93921E-04
   3  Normalizat    .76952        .22804        .30670E-03    .80216E-04
   4  Prefactor     1.2736        .20225        .21863E-03    .11197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1408
  Index      = 2.66936
  Normalizat = 0.769517
  Prefactor  = 1.27357
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.468     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.141        19.885        .36619E-05   -1.4833    
   2  Index         2.6694        .71071        .37468E-03   -.48491    
   3  Normalizat    .76952        .22828        .12268E-04   -1.0121    
   4  Prefactor     1.2736        .20234        .43727E-04   -.84096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95693e-10
Minuit parameter uncertainties:
  1  19.8921
  2  0.713804
  3  0.228565
  4  0.202463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97449': 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) = 5936.4678254
delta logL = 0.00444065407191

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.914e+01  1.989e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.669e+00  7.138e-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.274e+00  2.025e-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:  7.695e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.67 +/- 0.71
Photon Flux (Free Index): 6.10e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.54e-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/97449/cmap_HighResolution_485568001_485827201_4FGL_J1300.4+1416_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='1.51e-05', photon_flux_error='6.17e-08', dlogl='4.44e-03', energy_flux='1.46e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-06 14:54:15.863438', photon_index_error2='0.71', photon_index2='2.67', ts='1.26', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.54e-05', EG='0.77', time_epoch_completed='1630965255.86', return_code='0', job_id='97449', GAL2='1.27', EG2='0.77', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.23e-08', ts2='1.26', photon_index='2.74' WHERE bin_id='950' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:54:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 97449: <4FGL_J1300.4+1416_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin950 195.12 14.2701 485568001 485827201 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 :                                   553.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

