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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin35
RA = 195.12, Dec = 14.2701
tmin = 248400001, tmax = 248659201
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='92625', job_status='RUN', time_executed='2021-09-06 14:25:44.296999', time_epoch_executed='1630963544.3' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92625/ft1_4FGL_J1300.4+1416_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92625/ft2_4FGL_J1300.4+1416_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92625/ft1_4FGL_J1300.4+1416_daily_bin35.fits outfile=/scratch/kocevski/92625/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin35.fits ra=195.12 dec=14.2701 rad=12.0 tmin=248400001.0 tmax=248659201.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.43
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92625/ft1_filtered_4FGL_J1300.4+1416_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/92625/ft2_4FGL_J1300.4+1416_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/92625/ltcube_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.fits outfile=/scratch/kocevski/92625/expmap_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.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/92625/ltcube_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.fits
.....................!
real 190.66
user 185.31
sys 4.27

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/92625/ft1_filtered_4FGL_J1300.4+1416_daily_bin35.fits scfile=/scratch/kocevski/92625/ft2_4FGL_J1300.4+1416_daily_bin35.fits outfile=/scratch/kocevski/92625/cmap_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.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.68
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92625/ft1_filtered_4FGL_J1300.4+1416_daily_bin35.fits scfile=/scratch/kocevski/92625/ft2_4FGL_J1300.4+1416_daily_bin35.fits outfile=/scratch/kocevski/92625/cmap_HighResolution_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.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.72
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .73627E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5919       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.671       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8692       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7213       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.453       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0267       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=   6517.696     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2026 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3480        3.0150       -.32641E-07    .39519E-05
   2  Prefactor     .10000E-03    7.0327        .92474E-07** at limit **
   3  norm          .73639E-01    .15833       -.23603E-07   -.31397E-03
   4  Prefactor     .10000E-03    64.592       -.11310E-05** at limit **
   5  Prefactor     1.5921        .93719        .83409E-07   -.25276E-03
   6  Prefactor     .10000E-03    11.165        .15002E-05** at limit **
   7  norm          1.7552        1.3372       -.32779E-07   -.12763E-04
   8  Prefactor     .10000E-03    38.662        .57871E-06** at limit **
   9  Prefactor     .10000E-03    3.0582       -.79364E-08** at limit **
  10  Prefactor     .10000E-03    4.3523       -.19911E-07** at limit **
  11  Prefactor     16.671        13.898       -.19037E-08    .39400E-05
  12  norm          4.8692        3.1495        .30418E-07    .21498E-04
  13  norm          .10000E-03    12.328       -.10968E-05** at limit **
  14  norm          2.7217        4.6449       -.26697E-05   -.24953E-04
  15  Prefactor     13.416        12.558        .76984E-07    .26043E-05
  16  Prefactor     .10000E-03    8.8027       -.43590E-06** at limit **
  17  norm          16.453        10.134       -.19252E-06    .42686E-04
  18  Prefactor     .10000E-03    12.229       -.74203E-07** at limit **
  19  Normalizat    1.1075        .18572        .42001E-06    .64797E-05
  20  Prefactor     1.0267        .16149        .26462E-07    .28205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34798
  Prefactor  = 0.0001
  norm       = 0.0736386
  Prefactor  = 0.0001
  Prefactor  = 1.59213
  Prefactor  = 0.0001
  norm       = 1.7552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6714
  norm       = 4.86919
  norm       = 0.0001
  norm       = 2.72168
  Prefactor  = 13.4159
  Prefactor  = 0.0001
  norm       = 16.4531
  Prefactor  = 0.0001
  Normalizat = 1.10754
  Prefactor  = 1.02675
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.696     FROM HESSE     STATUS=OK           295 CALLS     2321 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3480        3.0170        .10169E-03   -1.5245    
   2  Prefactor     .10000E-03    7.0335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .73639E-01    .13907        .45315E-03   -1.5654    
   4  Prefactor     .10000E-03    64.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5921        7.8344        .16814E-02   -1.5456    
   6  Prefactor     .10000E-03    11.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7552        1.3323        .78566E-04   -1.5443    
   8  Prefactor     .10000E-03    38.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0774        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3724        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.671        13.923        .98093E-04   -1.4891    
  12  norm          4.8692        3.1502        .11217E-03   -1.5267    
  13  norm          .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7217        4.6437        .21372E-03   -1.5378    
  15  Prefactor     13.416        12.572        .10936E-03   -1.4975    
  16  Prefactor     .10000E-03    8.8046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.453        10.117        .98740E-04   -1.4896    
  18  Prefactor     .10000E-03    12.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1075        .21783        .25835E-03   -.89510    
  20  Prefactor     1.0267        .19018        .23861E-03   -.91843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34891e-09
Minuit parameter uncertainties:
  1  3.01705
  2  5.05826e-07
  3  0.139069
  4  3.40329e-06
  5  7.06479
  6  5.19471e-06
  7  1.33228
  8  1.4113e-05
  9  2.83606e-07
  10  2.15573e-06
  11  13.9261
  12  3.1503
  13  1.94e-05
  14  4.64436
  15  12.5742
  16  5.97705e-07
  17  10.1181
  18  9.17647e-07
  19  0.218004
  20  0.190309
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.667e+01  1.393e+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.027e+00  1.903e-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.108e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/92625/likelihoodResults_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.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) = 6516.52231575
delta logL = 1.17320651935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6516.49824444
delta logL = 1.19727783333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.009       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9282       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0006       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=   6516.498     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.024        14.698        .22385E-02    .24729E-03
   2  Index         1.9284        .35344        .18113       -.64908E-04
   3  Normalizat    1.1423        .17885        .57610E-01    .91603E-05
   4  Prefactor     1.0006        .16050        .45600E-01    .94343E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0238
  Index      = 1.9284
  Normalizat = 1.14226
  Prefactor  = 1.00061
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.498     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.024        16.470        .44770E-03   -1.4813    
   2  Index         1.9284        .45205        .70210E-02   -.66152    
   3  Normalizat    1.1423        .21150        .25477E-03   -.88406    
   4  Prefactor     1.0006        .18939        .24110E-03   -.92709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85738e-10
Minuit parameter uncertainties:
  1  16.4738
  2  0.453041
  3  0.21166
  4  0.189521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92625': 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) = 6516.49824368
delta logL = 1.19727859326

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.002e+01  1.647e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  1.928e+00  4.530e-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.001e+00  1.895e-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.142e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 195.120 14.270
Photon Index (Free Index): 1.93 +/- 0.45
Photon Flux (Free Index): 3.80e-08 +/- 3.52e-08
Energy Flux (Free Index): 3.16e-05 +/- 3.07e-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/92625/cmap_HighResolution_248400001_248659201_4FGL_J1300.4+1416_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='3.16e-05', photon_flux_error='4.72e-08', dlogl='1.20e+00', energy_flux='1.32e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-06 14:35:46.685468', photon_index_error2='0.45', photon_index2='1.93', ts='2.18', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='3.07e-05', EG='1.11', time_epoch_completed='1630964146.69', return_code='0', job_id='92625', GAL2='1.00', EG2='1.14', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='3.52e-08', ts2='4.57', photon_index='2.74' WHERE bin_id='35' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:35:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 92625: <4FGL_J1300.4+1416_daily_bin35> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin35> 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) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:35 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:35 2021
Terminated at Mon Sep  6 14:35:47 2021
Results reported at Mon Sep  6 14:35:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin35 195.12 14.2701 248400001 248659201 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 :                                   598.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.43 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.

