/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 21 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin420
RA = 195.12, Dec = 14.2701
tmin = 348192001, tmax = 348451201
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='94172', job_status='RUN', time_executed='2021-09-06 14:31:17.187031', time_epoch_executed='1630963877.19' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94172/ft1_4FGL_J1300.4+1416_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94172/ft1_4FGL_J1300.4+1416_daily_bin420.fits outfile=/scratch/kocevski/94172/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin420.fits ra=195.12 dec=14.2701 rad=12.0 tmin=348192001.0 tmax=348451201.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.41
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94172/ft1_filtered_4FGL_J1300.4+1416_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/94172/ltcube_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.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/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits
.....................!
real 12.27
user 11.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94172/ft1_filtered_4FGL_J1300.4+1416_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/94172/ltcube_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.fits outfile=/scratch/kocevski/94172/expmap_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.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/94172/ltcube_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.fits
.....................!
real 191.76
user 186.43
sys 4.57

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/94172/ft1_filtered_4FGL_J1300.4+1416_daily_bin420.fits scfile=/scratch/kocevski/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits outfile=/scratch/kocevski/94172/cmap_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94172/ft1_filtered_4FGL_J1300.4+1416_daily_bin420.fits scfile=/scratch/kocevski/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits outfile=/scratch/kocevski/94172/cmap_HighResolution_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.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/94172/ft1_filtered_4FGL_J1300.4+1416_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/94172/ft2_4FGL_J1300.4+1416_daily_bin420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94172/Model_4FGL_J1300.4+1416_daily_bin420.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/94172/ft1_filtered_4FGL_J1300.4+1416_daily_bin420.fits.....................!
real 66.52
user 64.59
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .49309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.700       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .83881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1843       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2396       1.0000         .10000E-03   10000.    
    13 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.873       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77909       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5063       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=   8316.285     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1759 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2605       -.66765E-07** at limit **
   2  Prefactor     .10000E-03    33.642        .16092E-04** at limit **
   3  norm          .49308        .25523       -.24944E-07   -.66855E-03
   4  Prefactor     .10000E-03    56.344       -.96835E-05** at limit **
   5  Prefactor     22.702        11.498       -.84079E-08   -.22179E-05
   6  Prefactor     .10000E-03    8.7540       -.16584E-05** at limit **
   7  norm          .83847        1.1757       -.30335E-06   -.18045E-02
   8  Prefactor     .10000E-03    18.273       -.93668E-06** at limit **
   9  Prefactor     .10000E-03    3.1873        .52980E-07** at limit **
  10  Prefactor     .10000E-03    3.2883        .26328E-07** at limit **
  11  Prefactor     2.1745        15.117       -.17730E-05   -.21299E-03
  12  norm          1.2389        3.7148       -.17409E-05   -.14157E-02
  13  norm          .10000E-03    23.589       -.12287E-04** at limit **
  14  norm          28.871        8.8860       -.23664E-07   -.20403E-03
  15  Prefactor     .10000E-03    14.825        .69892E-05** at limit **
  16  Prefactor     .10000E-03    10.837       -.64133E-05** at limit **
  17  norm          .10000E-03    9.5317        .54469E-05** at limit **
  18  Prefactor     .10000E-03    12.902       -.74282E-06** at limit **
  19  Normalizat    .77915        .18031        .36098E-06   -.82100E-04
  20  Prefactor     1.5063        .16103        .11501E-06   -.94062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.493076
  Prefactor  = 0.0001
  Prefactor  = 22.7021
  Prefactor  = 0.0001
  norm       = 0.838472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17446
  norm       = 1.23888
  norm       = 0.0001
  norm       = 28.871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.779151
  Prefactor  = 1.50627
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.285     FROM HESSE     STATUS=OK           287 CALLS     2046 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2737        .99957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .49308        .25101        .31833E-04   -1.5568    
   4  Prefactor     .10000E-03    56.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.702        11.500        .84072E-04   -1.4755    
   6  Prefactor     .10000E-03    8.7550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .83847        1.0592        .11368E-02   -1.5525    
   8  Prefactor     .10000E-03    18.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2043        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2981        .16147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1745        15.280        .27852E-03   -1.5413    
  12  norm          1.2389        3.9004        .30436E-03   -1.5485    
  13  norm          .10000E-03    23.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.871        8.8668        .74560E-04   -1.4633    
  15  Prefactor     .10000E-03    14.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.5664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77915        .21336        .32456E-03   -1.0085    
  20  Prefactor     1.5063        .19253        .22299E-03   -.77364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13887e-09
Minuit parameter uncertainties:
  1  3.02667e-07
  2  0.000136014
  3  0.251009
  4  1.39053e-05
  5  11.501
  6  3.74466e-07
  7  1.05927
  8  8.81557e-07
  9  5.81145e-06
  10  1.32127e-06
  11  11.5321
  12  3.90117
  13  9.14005e-05
  14  8.86722
  15  6.64111e-05
  16  9.01361e-08
  17  2.7418e-05
  18  1.74248e-06
  19  0.213586
  20  0.192621
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.174e+00  1.153e+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.506e+00  1.926e-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.792e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94172/likelihoodResults_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.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) = 8316.24093871
delta logL = 0.044490564127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8316.23823109
delta logL = 0.0471981833016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3440       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2058       1.0000          .0000       10.000    
     3 'Normalizat'    .78306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5005       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=   8316.238     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      314 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3376        12.611        .96632E-03    .98068E-04
   2  Index         2.2030        1.2742        .12099E-01   -.77718E-04
   3  Normalizat    .78233        .20774        .32394E-03    .15793E-04
   4  Prefactor     1.5011        .19217        .22329E-03    .78407E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.33763
  Index      = 2.20299
  Normalizat = 0.782334
  Prefactor  = 1.50111
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.238     FROM HESSE     STATUS=OK            27 CALLS      341 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3376        12.653        .19326E-03   -1.5291    
   2  Index         2.2030        1.2795        .24198E-02   -.59366    
   3  Normalizat    .78233        .20793        .12958E-04   -1.0073    
   4  Prefactor     1.5011        .19230        .89318E-05   -.77509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57646e-13
Minuit parameter uncertainties:
  1  12.6612
  2  1.30076
  3  0.208145
  4  0.19239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94172': 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) = 8316.23822197
delta logL = 0.0472073073925

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  4.338e+00  1.266e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.203e+00  1.301e+00  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.501e+00  1.924e-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.823e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 195.120 14.270

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/94172/cmap_HighResolution_348192001_348451201_4FGL_J1300.4+1416_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2021-09-06 14:42:33.749999', job_id='94172', GAL2='1.50', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630964553.75', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='4.72e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='420' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:42:33 PDT 2021


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

Job <4FGL_J1300.4+1416_daily_bin420> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:38 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:40 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:30:40 2021
Terminated at Mon Sep  6 14:42:34 2021
Results reported at Mon Sep  6 14:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin420 195.12 14.2701 348192001 348451201 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 :                                   663.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

