/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 179 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin282
RA = 195.12, Dec = 14.2701
tmin = 312422401, tmax = 312681601
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='92963', job_status='RUN', time_executed='2021-09-06 14:29:25.586907', time_epoch_executed='1630963765.59' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92963/ft1_4FGL_J1300.4+1416_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92963/ft2_4FGL_J1300.4+1416_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92963/ft1_4FGL_J1300.4+1416_daily_bin282.fits outfile=/scratch/kocevski/92963/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin282.fits ra=195.12 dec=14.2701 rad=12.0 tmin=312422401.0 tmax=312681601.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.93
user 3.68
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92963/ft1_filtered_4FGL_J1300.4+1416_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/92963/ft2_4FGL_J1300.4+1416_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/92963/ltcube_312422401_312681601_4FGL_J1300.4+1416_daily_bin282.fits outfile=/scratch/kocevski/92963/expmap_312422401_312681601_4FGL_J1300.4+1416_daily_bin282.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/92963/ltcube_312422401_312681601_4FGL_J1300.4+1416_daily_bin282.fits
.....................!
real 191.17
user 185.83
sys 4.84

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/92963/ft1_filtered_4FGL_J1300.4+1416_daily_bin282.fits scfile=/scratch/kocevski/92963/ft2_4FGL_J1300.4+1416_daily_bin282.fits outfile=/scratch/kocevski/92963/cmap_312422401_312681601_4FGL_J1300.4+1416_daily_bin282.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92963/ft1_filtered_4FGL_J1300.4+1416_daily_bin282.fits scfile=/scratch/kocevski/92963/ft2_4FGL_J1300.4+1416_daily_bin282.fits outfile=/scratch/kocevski/92963/cmap_HighResolution_312422401_312681601_4FGL_J1300.4+1416_daily_bin282.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.500       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    140.26       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    93.532       1.0000         .10000E-03   10000.    
     7 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5788       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45353E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.371       1.0000         .10000E-03   10000.    
    12 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8231       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1006       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
    17 'norm      '    22.253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1009       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0091       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=   6888.667     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2055 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4022        4.9414       -.26943E-06   -.42980E-03
   2  Prefactor     35.498        34.688       -.44572E-07   -.64317E-04
   3  norm          4.4817        .59092        .20497E-08    .29135E-03
   4  Prefactor     140.20        147.32       -.90081E-05   -.22179E-03
   5  Prefactor     .10000E-03    4.4919        .18996E-07** at limit **
   6  Prefactor     93.530        41.206       -.23211E-06    .11806E-03
   7  norm          .10000E-03    .83519        .12487E-07** at limit **
   8  Prefactor     .10000E-03    22.836       -.72887E-06** at limit **
   9  Prefactor     9.5813        8.4416       -.12310E-05   -.66872E-03
  10  Prefactor     .10058E-03    10.728       -.14486E-05** at limit **
  11  Prefactor     50.336        20.916        .45754E-06    .10027E-02
  12  norm          .10000E-03    2.5656       -.17553E-06** at limit **
  13  norm          2.8150        16.913        .12781E-04   -.37104E-03
  14  norm          5.0977        11.906       -.17647E-05   -.50249E-03
  15  Prefactor     .10000E-03    7.1104        .14759E-06** at limit **
  16  Prefactor     14.640        26.348       -.12234E-05   -.10488E-03
  17  norm          22.261        15.880       -.82829E-06   -.77338E-03
  18  Prefactor     .10000E-03    30.627        .92976E-06** at limit **
  19  Normalizat    1.1004        .22048        .65920E-06    .17809E-03
  20  Prefactor     1.0094        .17568       -.62822E-06    .22697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.4022
  Prefactor  = 35.4981
  norm       = 4.48171
  Prefactor  = 140.196
  Prefactor  = 0.0001
  Prefactor  = 93.5305
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.58135
  Prefactor  = 0.000100583
  Prefactor  = 50.336
  norm       = 0.0001
  norm       = 2.81496
  norm       = 5.09766
  Prefactor  = 0.0001
  Prefactor  = 14.6405
  norm       = 22.2614
  Prefactor  = 0.0001
  Normalizat = 1.1004
  Prefactor  = 1.00941
 **********
 **   18 **HESSE 
 **********

 FCN=   6888.667     FROM HESSE     STATUS=OK           289 CALLS     2344 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4022        4.9638        .13579E-03   -1.5128    
   2  Prefactor     35.498        34.690        .67260E-04   -1.4516    
   3  norm          4.4817        .59236        .22298E-04   -1.5285    
   4  Prefactor     140.20        152.28        .17007E-03   -1.3334    
   5  Prefactor     .10000E-03    4.4968        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     93.530        41.271        .41555E-04   -1.3771    
   7  norm          .10000E-03    .86246        .14799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5813        8.5779        .12948E-03   -1.5089    
  10  Prefactor     .10058E-03    124.50        .49056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.336        20.612        .56505E-04   -1.4288    
  12  norm          .10000E-03    2.6676        .25956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8150        18.344        .12103E-02   -1.5372    
  14  norm          5.0977        11.746        .17803E-03   -1.5256    
  15  Prefactor     .10000E-03    7.1484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.640        26.455        .10461E-03   -1.4943    
  17  norm          22.261        15.767        .84910E-04   -1.4764    
  18  Prefactor     .10000E-03    30.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1004        .25819        .30746E-03   -.89739    
  20  Prefactor     1.0094        .20563        .27076E-03   -.92417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59549e-09
Minuit parameter uncertainties:
  1  4.96402
  2  34.7093
  3  0.592358
  4  152.712
  5  1.57672e-06
  6  41.2839
  7  3.19258e-06
  8  0.000114913
  9  8.57901
  10  0.0170793
  11  20.615
  12  2.15054e-06
  13  14.3782
  14  11.7518
  15  2.34325e-06
  16  26.4758
  17  15.7699
  18  0.000184127
  19  0.258486
  20  0.205792
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.034e+01  2.061e+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.009e+00  2.058e-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.100e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.81
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 6.98e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 1.63e-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) = 6888.650959
delta logL = 0.0161149335845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6888.64192105
delta logL = 0.0251528800627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.224       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6072       1.0000          .0000       10.000    
     3 'Normalizat'    1.1167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99772       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=   6888.642     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      242 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.227        24.591        .54978E-04   -.13438E-02
   2  Index         2.6070        .56694        .69717E-02   -.47334E-03
   3  Normalizat    1.1167        .25154        .30550E-03    .26871E-03
   4  Prefactor     .99772        .20859        .27209E-03    .51316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.227
  Index      = 2.60698
  Normalizat = 1.1167
  Prefactor  = 0.997719
 **********
 **   18 **HESSE 
 **********

 FCN=   6888.642     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.227        24.140        .10996E-04   -1.4248    
   2  Index         2.6070        .55589        .27887E-03   -.49906    
   3  Normalizat    1.1167        .25148        .61099E-04   -.89217    
   4  Prefactor     .99772        .20846        .54419E-04   -.92806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74085e-09
Minuit parameter uncertainties:
  1  24.1444
  2  0.557391
  3  0.251754
  4  0.208632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92963': 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) = 6888.64192097
delta logL = 0.0251529567631

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.323e+01  2.414e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.607e+00  5.574e-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.977e-01  2.086e-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.117e+00  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.57
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.61 +/- 0.56
Photon Flux (Free Index): 1.61e-07 +/- 8.02e-08
Energy Flux (Free Index): 4.19e-05 +/- 1.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/92963/cmap_HighResolution_312422401_312681601_4FGL_J1300.4+1416_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='4.19e-05', photon_flux_error='6.98e-08', dlogl='2.52e-02', energy_flux='3.99e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-06 14:39:01.180993', photon_index_error2='0.56', photon_index2='2.61', ts='10.81', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.10', time_epoch_completed='1630964341.18', return_code='0', job_id='92963', GAL2='1.00', EG2='1.12', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='8.02e-08', ts2='10.57', photon_index='2.74' WHERE bin_id='282' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 92963: <4FGL_J1300.4+1416_daily_bin282> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin282> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:01 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:03 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:26:03 2021
Terminated at Mon Sep  6 14:39:01 2021
Results reported at Mon Sep  6 14:39:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin282 195.12 14.2701 312422401 312681601 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 :                                   572.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

