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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin427
RA = 195.12, Dec = 14.2701
tmin = 350006401, tmax = 350265601
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='94182', job_status='RUN', time_executed='2021-09-06 14:34:41.436494', time_epoch_executed='1630964081.44' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94182

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94182/ft1_4FGL_J1300.4+1416_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94182/ft2_4FGL_J1300.4+1416_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94182/ft1_4FGL_J1300.4+1416_daily_bin427.fits outfile=/scratch/kocevski/94182/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin427.fits ra=195.12 dec=14.2701 rad=12.0 tmin=350006401.0 tmax=350265601.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.99
user 3.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94182/ft1_filtered_4FGL_J1300.4+1416_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/94182/ft2_4FGL_J1300.4+1416_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/94182/ltcube_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.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/94182/ft2_4FGL_J1300.4+1416_daily_bin427.fits
.....................!
real 11.43
user 11.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94182/ft1_filtered_4FGL_J1300.4+1416_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/94182/ft2_4FGL_J1300.4+1416_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/94182/ltcube_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.fits outfile=/scratch/kocevski/94182/expmap_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.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/94182/ltcube_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.fits
.....................!
real 190.59
user 185.65
sys 4.57

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94182/ft1_filtered_4FGL_J1300.4+1416_daily_bin427.fits scfile=/scratch/kocevski/94182/ft2_4FGL_J1300.4+1416_daily_bin427.fits outfile=/scratch/kocevski/94182/cmap_HighResolution_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .27600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.404       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16405E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.068       1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.276       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.172       1.0000         .10000E-03   10000.    
    14 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91613       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1963       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=   5706.366     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2085 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9833        3.5891       -.50758E-06   -.28111E-03
   2  Prefactor     .10000E-03    10.216        .63816E-06** at limit **
   3  norm          .27599        .20943       -.89230E-07   -.66016E-03
   4  Prefactor     34.137        105.33       -.37938E-03    .18512E-04
   5  Prefactor     .10000E-03    15.080       -.24610E-05** at limit **
   6  Prefactor     30.063        31.988        .15206E-05    .44183E-04
   7  norm          .10000E-03    .98406        .88142E-06** at limit **
   8  Prefactor     .10074E-03    32.228        .15316E-05** at limit **
   9  Prefactor     .10000E-03    3.8588        .16578E-06** at limit **
  10  Prefactor     .10000E-03    15.638        .24299E-05** at limit **
  11  Prefactor     24.271        16.602       -.44573E-05   -.84545E-04
  12  norm          .10000E-03    1.0865       -.67000E-07** at limit **
  13  norm          19.172        14.247        .49348E-06    .13814E-04
  14  norm          .10000E-03    2.1515       -.36447E-07** at limit **
  15  Prefactor     .10000E-03    3.8816       -.31606E-06** at limit **
  16  Prefactor     .10000E-03    7.5181       -.11696E-06** at limit **
  17  norm          3.9549        5.7850       -.18292E-05   -.30320E-03
  18  Prefactor     .10000E-03    64.916       -.16034E-05** at limit **
  19  Normalizat    .91612        .19569        .25116E-05   -.72097E-04
  20  Prefactor     1.1963        .17211        .40564E-05   -.28001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.98335
  Prefactor  = 0.000100001
  norm       = 0.275992
  Prefactor  = 34.1369
  Prefactor  = 0.0001
  Prefactor  = 30.0628
  norm       = 0.000100002
  Prefactor  = 0.000100738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2706
  norm       = 0.0001
  norm       = 19.172
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95489
  Prefactor  = 0.0001
  Normalizat = 0.916115
  Prefactor  = 1.19633
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.366     FROM HESSE     STATUS=OK           295 CALLS     2380 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9833        3.5835        .13062E-03   -1.5309    
   2  Prefactor     .10000E-03    10.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .27599        .20489        .29046E-04   -1.5603    
   4  Prefactor     34.137        105.53        .34160E-03   -1.4539    
   5  Prefactor     .10000E-03    15.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.063        31.901        .73068E-04   -1.4611    
   7  norm          .10000E-03    2.0456        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10074E-03    289.27        .82598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8863        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.271        16.617        .81300E-04   -1.4722    
  12  norm          .10000E-03    1.0925        .76891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.172        14.242        .91473E-04   -1.4832    
  14  norm          .10000E-03    3.7337        .21352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8901        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9549        5.7132        .20285E-03   -1.5310    
  18  Prefactor     .10000E-03    65.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91612        .22865        .27264E-03   -.95896    
  20  Prefactor     1.1963        .20229        .22246E-03   -.86444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59926e-09
Minuit parameter uncertainties:
  1  3.58369
  2  0.000189047
  3  0.20489
  4  106.114
  5  8.50194e-05
  6  31.9189
  7  0.000122123
  8  0.0293671
  9  2.70094e-05
  10  8.04785e-05
  11  16.6197
  12  4.99735e-06
  13  14.245
  14  6.86475e-06
  15  1.5653e-05
  16  6.65183e-06
  17  5.71403
  18  0.000305405
  19  0.228898
  20  0.202417
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.427e+01  1.662e+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.196e+00  2.024e-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.161e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.23e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/94182/likelihoodResults_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.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) = 5705.47153428
delta logL = 0.894003349908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5705.46267952
delta logL = 0.902858108142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.620       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9484       1.0000          .0000       10.000    
     3 'Normalizat'    .84860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2412       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=   5705.463     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      281 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.617        17.697        .12295E-03   -.11965E-03
   2  Index         3.9486        1.3950        .58607E-02   -.42015E-04
   3  Normalizat    .84865        .22942        .28219E-03   -.31959E-03
   4  Prefactor     1.2411        .20612        .21892E-03   -.35000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6166
  Index      = 3.94865
  Normalizat = 0.848646
  Prefactor  = 1.2411
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.463     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.617        13.432        .49179E-05   -1.5056    
   2  Index         3.9486        1.0637        .23443E-03   -.21185    
   3  Normalizat    .84865        .22951        .11288E-04   -.98289    
   4  Prefactor     1.2411        .20582        .43783E-04   -.85076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14486e-10
Minuit parameter uncertainties:
  1  13.4355
  2  1.07226
  3  0.229774
  4  0.20595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94182': 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) = 5705.46267943
delta logL = 0.902858198201

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.062e+01  1.344e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.949e+00  1.072e+00  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.241e+00  2.060e-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:  8.486e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.95 +/- 1.07
Photon Flux (Free Index): 1.29e-07 +/- 7.13e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.08e-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/94182/cmap_HighResolution_350006401_350265601_4FGL_J1300.4+1416_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='8.23e-08', energy_flux2='1.95e-05', photon_flux_error='5.63e-08', dlogl='9.03e-01', energy_flux='1.93e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-06 14:44:18.681609', photon_index_error2='1.07', photon_index2='3.95', ts='2.97', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.08e-05', EG='0.92', time_epoch_completed='1630964658.68', return_code='0', job_id='94182', GAL2='1.24', EG2='0.85', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='7.13e-08', ts2='5.02', photon_index='2.74' WHERE bin_id='427' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 94182: <4FGL_J1300.4+1416_daily_bin427> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin427> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:39 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:40 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:30:40 2021
Terminated at Mon Sep  6 14:44:19 2021
Results reported at Mon Sep  6 14:44:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin427 195.12 14.2701 350006401 350265601 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 :                                   576.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            820 sec.

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

