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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin37
RA = 195.12, Dec = 14.2701
tmin = 248918401, tmax = 249177601
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='92628', job_status='RUN', time_executed='2021-09-06 14:28:07.887634', time_epoch_executed='1630963687.89' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92628

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92628/ft1_4FGL_J1300.4+1416_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92628/ft2_4FGL_J1300.4+1416_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92628/ft1_4FGL_J1300.4+1416_daily_bin37.fits outfile=/scratch/kocevski/92628/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin37.fits ra=195.12 dec=14.2701 rad=12.0 tmin=248918401.0 tmax=249177601.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 2.11
user 1.75
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92628/ft1_filtered_4FGL_J1300.4+1416_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/92628/ft2_4FGL_J1300.4+1416_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/92628/ltcube_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.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/92628/ft2_4FGL_J1300.4+1416_daily_bin37.fits
.....................!
real 13.21
user 12.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92628/ft1_filtered_4FGL_J1300.4+1416_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/92628/ft2_4FGL_J1300.4+1416_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/92628/ltcube_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.fits outfile=/scratch/kocevski/92628/expmap_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.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/92628/ltcube_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.fits
.....................!
real 192.29
user 185.44
sys 5.11

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/92628/ft1_filtered_4FGL_J1300.4+1416_daily_bin37.fits scfile=/scratch/kocevski/92628/ft2_4FGL_J1300.4+1416_daily_bin37.fits outfile=/scratch/kocevski/92628/cmap_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92628/ft1_filtered_4FGL_J1300.4+1416_daily_bin37.fits scfile=/scratch/kocevski/92628/ft2_4FGL_J1300.4+1416_daily_bin37.fits outfile=/scratch/kocevski/92628/cmap_HighResolution_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.484       1.0000         .10000E-03   10000.    
     3 'norm      '    .28766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.009       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9534       1.0000         .10000E-03   10000.    
    13 'norm      '    13.003       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6362       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.683       1.0000         .10000E-03   10000.    
    17 'norm      '    19.341       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.944       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1947       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80901       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=   5184.953     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2018 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5195       -.13310E-07** at limit **
   2  Prefactor     70.481        44.319       -.23352E-05    .20977E-04
   3  norm          .28767        .23030       -.44147E-07   -.65699E-03
   4  Prefactor     .10000E-03    61.717        .34779E-04** at limit **
   5  Prefactor     .10000E-03    21.142       -.62349E-06** at limit **
   6  Prefactor     .10000E-03    66.751       -.37162E-04** at limit **
   7  norm          1.2143        1.2998       -.13139E-06   -.43330E-03
   8  Prefactor     .10000E-03    14.925        .17172E-06** at limit **
   9  Prefactor     .10000E-03    3.6240       -.40722E-07** at limit **
  10  Prefactor     .10000E-03    4.3587       -.15153E-07** at limit **
  11  Prefactor     27.008        14.657       -.15548E-06    .56113E-04
  12  norm          5.9536        4.3790        .52207E-06   -.73915E-04
  13  norm          13.002        17.526       -.86796E-06   -.24092E-03
  14  norm          .10000E-03    2.5765       -.11180E-07** at limit **
  15  Prefactor     9.6353        9.3378       -.20339E-06   -.14605E-04
  16  Prefactor     32.677        32.127       -.61316E-05    .30894E-05
  17  norm          19.339        10.935       -.13508E-07   -.10269E-04
  18  Prefactor     35.931        43.875       -.16917E-04    .27196E-05
  19  Normalizat    1.1947        .19916        .11939E-05    .21985E-03
  20  Prefactor     .80902        .17156        .97987E-06    .20340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 70.4811
  norm       = 0.287666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0082
  norm       = 5.95357
  norm       = 13.0025
  norm       = 0.0001
  Prefactor  = 9.63526
  Prefactor  = 32.6771
  norm       = 19.339
  Prefactor  = 35.9306
  Normalizat = 1.19473
  Prefactor  = 0.809018
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.953     FROM HESSE     STATUS=OK           293 CALLS     2311 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5438        .86653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     70.481        44.326        .47815E-04   -1.4027    
   3  norm          .28767        .22370        .29783E-03   -1.5601    
   4  Prefactor     .10000E-03    61.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2143        1.2771        .82099E-04   -1.5488    
   8  Prefactor     .10000E-03    14.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6493        .13386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3693        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.008        14.700        .77085E-04   -1.4668    
  12  norm          5.9536        4.3823        .12465E-03   -1.5220    
  13  norm          13.002        17.552        .55541E-03   -1.4987    
  14  norm          .10000E-03    2.5830        .11282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6353        9.3409        .12909E-03   -1.5087    
  16  Prefactor     32.677        32.150        .70091E-04   -1.4564    
  17  norm          19.339        10.961        .91073E-04   -1.4828    
  18  Prefactor     35.931        43.948        .66845E-04   -1.4508    
  19  Normalizat    1.1947        .23426        .24054E-03   -.86766    
  20  Prefactor     .80902        .20091        .25207E-03   -.99397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82766e-10
Minuit parameter uncertainties:
  1  2.59301e-06
  2  44.3463
  3  0.223699
  4  3.69351e-07
  5  6.24791e-05
  6  0.000348125
  7  1.27711
  8  4.46614e-06
  9  8.68943e-06
  10  3.02405e-06
  11  14.7024
  12  4.38253
  13  17.5592
  14  2.4476e-06
  15  9.3423
  16  32.1673
  17  10.9625
  18  43.9875
  19  0.234466
  20  0.201093
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.701e+01  1.470e+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:  8.090e-01  2.011e-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.195e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.98
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 9.16e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.17e-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) = 5184.60896566
delta logL = 0.343679417238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5184.59812116
delta logL = 0.354523920702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.503       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2746       1.0000          .0000       10.000    
     3 'Normalizat'    1.2272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5184.598     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.473        20.864        .18440E-02    .14069E-04
   2  Index         2.2742        .55336        .19257       -.37232E-04
   3  Normalizat    1.2273        .19528        .53784E-01   -.53243E-04
   4  Prefactor     .78918        .17131        .43576E-01   -.93842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4726
  Index      = 2.27421
  Normalizat = 1.2273
  Prefactor  = 0.789179
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.598     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.473        16.952        .73762E-04   -1.4622    
   2  Index         2.2742        .52051        .73391E-02   -.57658    
   3  Normalizat    1.2273        .22945        .23782E-03   -.85763    
   4  Prefactor     .78918        .19983        .25477E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22785e-11
Minuit parameter uncertainties:
  1  16.955
  2  0.521856
  3  0.229641
  4  0.200011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92628': 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) = 5184.59811938
delta logL = 0.354525698544

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.947e+01  1.695e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.274e+00  5.219e-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.892e-01  2.000e-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.227e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.27 +/- 0.52
Photon Flux (Free Index): 6.83e-08 +/- 4.96e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.88e-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/92628/cmap_HighResolution_248918401_249177601_4FGL_J1300.4+1416_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.16e-08', energy_flux2='2.70e-05', photon_flux_error='4.98e-08', dlogl='3.55e-01', energy_flux='2.14e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-06 14:36:36.449719', photon_index_error2='0.52', photon_index2='2.27', ts='6.98', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.19', time_epoch_completed='1630964196.45', return_code='0', job_id='92628', GAL2='0.79', EG2='1.23', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.96e-08', ts2='7.65', photon_index='2.74' WHERE bin_id='37' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 92628: <4FGL_J1300.4+1416_daily_bin37> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin37 195.12 14.2701 248918401 249177601 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 :                                   502.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            663 sec.

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

