/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 186 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin108
RA = 195.12, Dec = 14.2701
tmin = 267321601, tmax = 267580801
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='92733', job_status='RUN', time_executed='2021-09-06 14:29:11.008495', time_epoch_executed='1630963751.01' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92733/ft1_4FGL_J1300.4+1416_daily_bin108.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92733/ft2_4FGL_J1300.4+1416_daily_bin108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92733/ft1_4FGL_J1300.4+1416_daily_bin108.fits outfile=/scratch/kocevski/92733/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin108.fits ra=195.12 dec=14.2701 rad=12.0 tmin=267321601.0 tmax=267580801.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 1.44
user 1.25
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92733/ft2_4FGL_J1300.4+1416_daily_bin108.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/92733/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin108.fits evtable="EVENTS" outfile="/scratch/kocevski/92733/ft1_filtered_4FGL_J1300.4+1416_daily_bin108.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.53
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92733/ft1_filtered_4FGL_J1300.4+1416_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/92733/ft2_4FGL_J1300.4+1416_daily_bin108.fits sctable="SC_DATA" expcube=/scratch/kocevski/92733/ltcube_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.fits outfile=/scratch/kocevski/92733/expmap_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.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/92733/ltcube_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.fits
.....................!
real 191.85
user 185.55
sys 5.16

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/92733/ft1_filtered_4FGL_J1300.4+1416_daily_bin108.fits scfile=/scratch/kocevski/92733/ft2_4FGL_J1300.4+1416_daily_bin108.fits outfile=/scratch/kocevski/92733/cmap_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92733/ft1_filtered_4FGL_J1300.4+1416_daily_bin108.fits scfile=/scratch/kocevski/92733/ft2_4FGL_J1300.4+1416_daily_bin108.fits outfile=/scratch/kocevski/92733/cmap_HighResolution_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8909       1.0000         .10000E-03   10000.    
     3 'norm      '    .23130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80322       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.900       1.0000         .10000E-03   10000.    
     7 'norm      '    .96163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.187       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.073       1.0000         .10000E-03   10000.    
    12 'norm      '    13.220       1.0000         .10000E-03   10000.    
    13 'norm      '    9.8451       1.0000         .10000E-03   10000.    
    14 'norm      '    15.810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5218       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.909       1.0000         .10000E-03   10000.    
    17 'norm      '    24.288       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.801       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93363       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0279       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=   5659.063     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1816 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6205       -.31081E-06** at limit **
   2  Prefactor     2.8917        23.184       -.13896E-04   -.73970E-04
   3  norm          .23131        .20182       -.68723E-07   -.14740E-02
   4  Prefactor     .31252E-03    138.40        .53920E-07** at limit **
   5  Prefactor     .10000E-03    4.0628       -.45680E-06** at limit **
   6  Prefactor     18.896        18.676        .24491E-04    .17875E-04
   7  norm          .96151        .92135       -.40382E-06   -.52251E-02
   8  Prefactor     37.188        34.790       -.35078E-04    .20321E-04
   9  Prefactor     4.2932        4.0191        .10388E-06    .84608E-04
  10  Prefactor     .10000E-03    3.8867        .17869E-06** at limit **
  11  Prefactor     17.072        12.559       -.31834E-06   -.17118E-04
  12  norm          13.220        4.8973       -.74090E-07    .14207E-04
  13  norm          9.8446        17.964        .20872E-05   -.17509E-04
  14  norm          15.809        10.571       -.10378E-05   -.44821E-04
  15  Prefactor     7.5166        12.419        .43810E-05   -.56649E-04
  16  Prefactor     26.908        24.268       -.11680E-04    .42900E-05
  17  norm          24.288        13.328        .42246E-06   -.18298E-04
  18  Prefactor     17.799        29.581       -.12129E-04   -.15723E-05
  19  Normalizat    .93357        .19667       -.11225E-05    .10053E-03
  20  Prefactor     1.0280        .17331        .22498E-05   -.85289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.89166
  norm       = 0.23131
  Prefactor  = 0.000312518
  Prefactor  = 0.000100001
  Prefactor  = 18.8962
  norm       = 0.961513
  Prefactor  = 37.188
  Prefactor  = 4.29321
  Prefactor  = 0.0001
  Prefactor  = 17.0719
  norm       = 13.2202
  norm       = 9.84465
  norm       = 15.8091
  Prefactor  = 7.51656
  Prefactor  = 26.9083
  norm       = 24.2876
  Prefactor  = 17.7995
  Normalizat = 0.933569
  Prefactor  = 1.02802
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.063     FROM HESSE     STATUS=OK           317 CALLS     2133 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7847        .27914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8917        23.205        .23901E-03   -1.5368    
   3  norm          .23131        .19300        .30504E-03   -1.5612    
   4  Prefactor     .31252E-03    138.40        .27462       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0745        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.896        18.664        .92129E-04   -1.4838    
   7  norm          .96151        .88861        .34491E-02   -1.5512    
   8  Prefactor     37.188        34.718        .32861E-03   -1.4488    
   9  Prefactor     4.2932        4.0224        .14215E-03   -1.5294    
  10  Prefactor     .10000E-03    3.8931        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.072        12.578        .96932E-04   -1.4881    
  12  norm          13.220        4.8976        .98345E-04   -1.4981    
  13  norm          9.8446        17.950        .12771E-03   -1.5080    
  14  norm          15.809        10.577        .10073E-03   -1.4913    
  15  Prefactor     7.5166        12.409        .14623E-03   -1.5160    
  16  Prefactor     26.908        24.265        .77228E-04   -1.4670    
  17  norm          24.288        13.341        .81280E-04   -1.4722    
  18  Prefactor     17.799        29.582        .94929E-04   -1.4864    
  19  Normalizat    .93357        .22673        .26848E-03   -.95290    
  20  Prefactor     1.0280        .20021        .23204E-03   -.91801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86853e-09
Minuit parameter uncertainties:
  1  6.26189e-05
  2  16.3914
  3  0.193004
  4  0.343799
  5  0.000105567
  6  18.6697
  7  0.888619
  8  34.7366
  9  4.02266
  10  4.99699e-05
  11  12.5795
  12  4.89777
  13  17.9595
  14  10.5778
  15  12.4129
  16  24.2742
  17  13.3426
  18  29.6061
  19  0.22696
  20  0.200359
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.707e+01  1.258e+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.028e+00  2.004e-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:  9.336e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 9.98e-06

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

Saving results to:
/scratch/kocevski/92733/likelihoodResults_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.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) = 5659.05100242
delta logL = 0.0115200409036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5659.04748247
delta logL = 0.0150399913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.992       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8635       1.0000          .0000       10.000    
     3 'Normalizat'    .92926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0309       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=   5659.047     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      226 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.990        14.045        .10016E-03    .14522E-02
   2  Index         2.8637        .76029        .84670E-02    .33994E-03
   3  Normalizat    .92926        .22204        .26903E-03   -.30887E-03
   4  Prefactor     1.0309        .19911        .23175E-03   -.37283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9898
  Index      = 2.86369
  Normalizat = 0.929257
  Prefactor  = 1.0309
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.047     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.990        13.654        .20031E-04   -1.4908    
   2  Index         2.8637        .73899        .33868E-03   -.44146    
   3  Normalizat    .92926        .22223        .53806E-04   -.95440    
   4  Prefactor     1.0309        .19924        .46351E-04   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99981e-09
Minuit parameter uncertainties:
  1  13.6564
  2  0.742326
  3  0.222447
  4  0.199383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92733': 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) = 5659.04748235
delta logL = 0.015040116873

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.599e+01  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.864e+00  7.423e-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.031e+00  1.994e-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:  9.293e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.86 +/- 0.74
Photon Flux (Free Index): 6.10e-08 +/- 4.71e-08
Energy Flux (Free Index): 1.31e-05 +/- 9.86e-06

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/92733/cmap_HighResolution_267321601_267580801_4FGL_J1300.4+1416_daily_bin108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='1.31e-05', photon_flux_error='4.26e-08', dlogl='1.50e-02', energy_flux='1.35e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-06 14:38:23.075303', photon_index_error2='0.74', photon_index2='2.86', ts='2.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='9.86e-06', EG='0.93', time_epoch_completed='1630964303.08', return_code='0', job_id='92733', GAL2='1.03', EG2='0.93', return_code2='0', energy_flux_error='9.98e-06', photon_flux_error2='4.71e-08', ts2='2.87', photon_index='2.74' WHERE bin_id='108' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 92733: <4FGL_J1300.4+1416_daily_bin108> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin108> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:41 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:44 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:25:44 2021
Terminated at Mon Sep  6 14:38:23 2021
Results reported at Mon Sep  6 14:38:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin108 195.12 14.2701 267321601 267580801 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 :                                   550.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

