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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin1041
RA = 195.12, Dec = 14.2701
tmin = 509155201, tmax = 509414401
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='97589', job_status='RUN', time_executed='2021-09-06 14:41:00.068685', time_epoch_executed='1630964460.07' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97589/ft1_4FGL_J1300.4+1416_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97589/ft2_4FGL_J1300.4+1416_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97589/ft1_4FGL_J1300.4+1416_daily_bin1041.fits outfile=/scratch/kocevski/97589/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin1041.fits ra=195.12 dec=14.2701 rad=12.0 tmin=509155201.0 tmax=509414401.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.73
user 3.48
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97589/ft2_4FGL_J1300.4+1416_daily_bin1041.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/97589/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/97589/ft1_filtered_4FGL_J1300.4+1416_daily_bin1041.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.51
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97589/ft1_filtered_4FGL_J1300.4+1416_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/97589/ft2_4FGL_J1300.4+1416_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/97589/ltcube_509155201_509414401_4FGL_J1300.4+1416_daily_bin1041.fits outfile=/scratch/kocevski/97589/expmap_509155201_509414401_4FGL_J1300.4+1416_daily_bin1041.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/97589/ltcube_509155201_509414401_4FGL_J1300.4+1416_daily_bin1041.fits
.....................!
real 190.77
user 185.35
sys 5.04

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/97589/ft1_filtered_4FGL_J1300.4+1416_daily_bin1041.fits scfile=/scratch/kocevski/97589/ft2_4FGL_J1300.4+1416_daily_bin1041.fits outfile=/scratch/kocevski/97589/cmap_509155201_509414401_4FGL_J1300.4+1416_daily_bin1041.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97589/ft1_filtered_4FGL_J1300.4+1416_daily_bin1041.fits scfile=/scratch/kocevski/97589/ft2_4FGL_J1300.4+1416_daily_bin1041.fits outfile=/scratch/kocevski/97589/cmap_HighResolution_509155201_509414401_4FGL_J1300.4+1416_daily_bin1041.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.433       1.0000         .10000E-03   10000.    
     7 'norm      '    .29390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1927       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2412       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.169       1.0000         .10000E-03   10000.    
    12 'norm      '    11.125       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.863       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75320       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=   6144.093     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2438 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3225        .20952E-07** at limit **
   2  Prefactor     .10000E-03    16.938       -.48761E-05** at limit **
   3  norm          .40198        .28285       -.42496E-07   -.85622E-03
   4  Prefactor     22.985        157.68        .11109E-04    .92546E-05
   5  Prefactor     11.191        9.2473        .33680E-06    .95517E-05
   6  Prefactor     13.432        24.808       -.38414E-05   -.31192E-05
   7  norm          .29386        1.0267       -.69890E-06   -.79721E-03
   8  Prefactor     8.1911        78.169       -.55288E-05    .10878E-05
   9  Prefactor     .10000E-03    2.6620        .19602E-07** at limit **
  10  Prefactor     7.2414        13.939        .26239E-06   -.20031E-04
  11  Prefactor     25.167        14.876       -.12057E-05    .27885E-04
  12  norm          11.125        5.5260        .32937E-07    .92830E-04
  13  norm          .10000E-03    11.635       -.51806E-05** at limit **
  14  norm          .10005E-03    5.1218       -.14285E-05** at limit **
  15  Prefactor     .10000E-03    3.5352       -.49295E-07** at limit **
  16  Prefactor     16.861        23.372       -.29062E-05   -.78215E-06
  17  norm          4.1399        7.0132       -.86457E-06    .14517E-03
  18  Prefactor     .10000E-03    14.722        .14799E-04** at limit **
  19  Normalizat    1.2414        .18908        .11027E-05    .25522E-03
  20  Prefactor     .75320        .15529        .43169E-06    .24471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.401982
  Prefactor  = 22.9851
  Prefactor  = 11.1911
  Prefactor  = 13.4316
  norm       = 0.293863
  Prefactor  = 8.19109
  Prefactor  = 0.0001
  Prefactor  = 7.24144
  Prefactor  = 25.1673
  norm       = 11.1252
  norm       = 0.0001
  norm       = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 16.8613
  norm       = 4.13985
  Prefactor  = 0.0001
  Normalizat = 1.24142
  Prefactor  = 0.753195
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.093     FROM HESSE     STATUS=OK           299 CALLS     2737 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0986        .23112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40198        .27688        .33438E-04   -1.5581    
   4  Prefactor     22.985        157.84        .83558E-04   -1.4749    
   5  Prefactor     11.191        9.2365        .11976E-03   -1.5039    
   6  Prefactor     13.432        24.811        .10929E-03   -1.4975    
   7  norm          .29386        1.5324        .14202E-02   -1.5600    
   8  Prefactor     8.1911        76.456        .14007E-03   -1.5135    
   9  Prefactor     .10000E-03    2.6678        .12488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2414        13.779        .14906E-03   -1.5170    
  11  Prefactor     25.167        14.890        .79848E-04   -1.4704    
  12  norm          11.125        5.5342        .12011E-03   -1.5041    
  13  norm          .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10005E-03    16.910        .32378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5452        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.861        23.391        .97533E-04   -1.4886    
  17  norm          4.1399        6.7318        .19810E-03   -1.5301    
  18  Prefactor     .10000E-03    14.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2414        .22154        .24038E-03   -.85332    
  20  Prefactor     .75320        .18173        .25473E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39872e-09
Minuit parameter uncertainties:
  1  5.59378e-05
  2  2.64681e-05
  3  0.276885
  4  120.925
  5  9.23772
  6  24.8302
  7  1.34196
  8  50.1346
  9  1.89184e-06
  10  13.7855
  11  14.892
  12  5.53445
  13  1.48869e-05
  14  0.00188084
  15  2.93807e-06
  16  23.4042
  17  6.73306
  18  5.75505e-06
  19  0.22171
  20  0.18187
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.517e+01  1.489e+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:  7.532e-01  1.819e-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.241e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.00
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.54e-08 +/- 5.05e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.18e-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) = 6143.98293009
delta logL = 0.110135973659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6143.97813913
delta logL = 0.114926932369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4749       1.0000          .0000       10.000    
     3 'Normalizat'    1.2571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74312       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=   6143.978     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.062        14.190       -.18898E-05    .12700E-02
   2  Index         2.4752        .43740        .62709E-05    .38712E-03
   3  Normalizat    1.2571        .18253       -.26495E-06   -.13027E-03
   4  Prefactor     .74318        .15438        .39569E-06   -.97587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0616
  Index      = 2.47524
  Normalizat = 1.25708
  Prefactor  = 0.743176
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.978     FROM HESSE     STATUS=OK            29 CALLS      260 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.062        15.881        .77009E-04   -1.4667    
   2  Index         2.4752        .52437        .78859E-02   -.52933    
   3  Normalizat    1.2571        .21480        .23909E-03   -.84857    
   4  Prefactor     .74318        .18061        .25621E-03   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51852e-09
Minuit parameter uncertainties:
  1  15.8834
  2  0.525669
  3  0.214954
  4  0.180752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97589': 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) = 6143.97813882
delta logL = 0.114927242787

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.706e+01  1.588e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.475e+00  5.257e-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:  7.432e-01  1.808e-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.257e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.48 +/- 0.53
Photon Flux (Free Index): 7.31e-08 +/- 5.05e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.38e-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/97589/cmap_HighResolution_509155201_509414401_4FGL_J1300.4+1416_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.54e-08', energy_flux2='2.18e-05', photon_flux_error='5.05e-08', dlogl='1.15e-01', energy_flux='2.00e-05', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-09-06 14:50:56.997424', photon_index_error2='0.53', photon_index2='2.48', ts='5.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.24', time_epoch_completed='1630965057.0', return_code='0', job_id='97589', GAL2='0.74', EG2='1.26', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.05e-08', ts2='5.21', photon_index='2.74' WHERE bin_id='1041' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 97589: <4FGL_J1300.4+1416_daily_bin1041> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin1041> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:45 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:46 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:46 2021
Terminated at Mon Sep  6 14:50:58 2021
Results reported at Mon Sep  6 14:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin1041 195.12 14.2701 509155201 509414401 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 :                                   570.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

