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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin608
RA = 195.12, Dec = 14.2701
tmin = 396921601, tmax = 397180801
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='95581', job_status='RUN', time_executed='2021-09-06 14:35:37.192576', time_epoch_executed='1630964137.19' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95581/ft1_4FGL_J1300.4+1416_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95581/ft2_4FGL_J1300.4+1416_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95581/ft1_4FGL_J1300.4+1416_daily_bin608.fits outfile=/scratch/kocevski/95581/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin608.fits ra=195.12 dec=14.2701 rad=12.0 tmin=396921601.0 tmax=397180801.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 4.56
user 4.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95581/ft1_filtered_4FGL_J1300.4+1416_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/95581/ft2_4FGL_J1300.4+1416_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/95581/ltcube_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.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/95581/ft2_4FGL_J1300.4+1416_daily_bin608.fits
.....................!
real 12.03
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95581/ft1_filtered_4FGL_J1300.4+1416_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/95581/ft2_4FGL_J1300.4+1416_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/95581/ltcube_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.fits outfile=/scratch/kocevski/95581/expmap_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.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/95581/ltcube_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.fits
.....................!
real 191.67
user 185.41
sys 5.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/95581/ft1_filtered_4FGL_J1300.4+1416_daily_bin608.fits scfile=/scratch/kocevski/95581/ft2_4FGL_J1300.4+1416_daily_bin608.fits outfile=/scratch/kocevski/95581/cmap_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95581/ft1_filtered_4FGL_J1300.4+1416_daily_bin608.fits scfile=/scratch/kocevski/95581/ft2_4FGL_J1300.4+1416_daily_bin608.fits outfile=/scratch/kocevski/95581/cmap_HighResolution_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2371       1.0000         .10000E-03   10000.    
    13 'norm      '    9.7981       1.0000         .10000E-03   10000.    
    14 'norm      '    13.157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9125       1.0000         .10000E-03   10000.    
    17 'norm      '    11.207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23152E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3794       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77464       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5422.796     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     1813 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .94016         .0000    ** at limit **
   2  Prefactor     .10001E-03    71.602         .0000    ** at limit **
   3  norm          1.2345        .35015         .0000       -.41521E-03
   4  Prefactor     .35843        118.73         .0000        .58151E-04
   5  Prefactor     9.2647        12.777         .0000        .11531E-02
   6  Prefactor     .10000E-03    44.819         .0000    ** at limit **
   7  norm          1.7626        1.4472         .0000        .37561E-03
   8  Prefactor     .10000E-03    16.181         .0000    ** at limit **
   9  Prefactor     2.1116        6.9050         .0000        .11504E-01
  10  Prefactor     6.3963        9.0386         .0000        .24431E-02
  11  Prefactor     .10000E-03    9.8517         .0000    ** at limit **
  12  norm          3.2367        3.9139         .0000        .44152E-03
  13  norm          9.7994        15.496         .0000        .22201E-03
  14  norm          13.155        7.6600         .0000        .22807E-03
  15  Prefactor     .10000E-03    10.355         .0000    ** at limit **
  16  Prefactor     4.9118        16.559         .0000        .10340E-02
  17  norm          11.205        9.0984         .0000       -.10641E-02
  18  Prefactor     .10000E-03    87.149         .0000    ** at limit **
  19  Normalizat    1.3794        .19997         .0000        .87869E-04
  20  Prefactor     .77472        .17416         .0000        .12200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.23453
  Prefactor  = 0.358426
  Prefactor  = 9.26465
  Prefactor  = 0.0001
  norm       = 1.7626
  Prefactor  = 0.0001
  Prefactor  = 2.11155
  Prefactor  = 6.39629
  Prefactor  = 0.0001
  norm       = 3.23665
  norm       = 9.79935
  norm       = 13.1552
  Prefactor  = 0.0001
  Prefactor  = 4.9118
  norm       = 11.2051
  Prefactor  = 0.000100001
  Normalizat = 1.37936
  Prefactor  = 0.774724
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.796     FROM HESSE     STATUS=OK           301 CALLS     2114 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .94313        .69724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    73.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2345        .35088        .22365E-04   -1.5486    
   4  Prefactor     .35843        118.68        .27048       -1.5588    
   5  Prefactor     9.2647        12.768        .65810E-03   -1.5099    
   6  Prefactor     .10000E-03    45.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7626        1.4355        .77853E-04   -1.5442    
   8  Prefactor     .10000E-03    16.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1116        6.8784        .14204E-02   -1.5417    
  10  Prefactor     6.3963        9.0341        .79389E-03   -1.5202    
  11  Prefactor     .10000E-03    9.9525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2367        3.9044        .15370E-03   -1.5348    
  13  norm          9.7994        15.488        .12802E-03   -1.5082    
  14  norm          13.155        7.6626        .11043E-03   -1.4982    
  15  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9118        16.553        .90735E-03   -1.5265    
  17  norm          11.205        9.0990        .11967E-03   -1.5038    
  18  Prefactor     .10000E-03    88.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3794        .23274        .23656E-03   -.81227    
  20  Prefactor     .77472        .20168        .27013E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66438e-09
Minuit parameter uncertainties:
  1  2.63338e-07
  2  0.00132559
  3  0.350879
  4  13.0689
  5  12.7719
  6  0.000197438
  7  1.43553
  8  1.45761e-05
  9  6.88095
  10  9.036
  11  1.66618e-05
  12  3.90469
  13  15.4943
  14  7.66313
  15  7.14119e-05
  16  16.5686
  17  9.10012
  18  0.000721708
  19  0.232914
  20  0.201872
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.666e-05  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  7.747e-01  2.019e-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.379e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95581/likelihoodResults_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.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): 102
logL (Free Index) = 5422.79672846
delta logL = -0.000478761030536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5422.79624978
delta logL = -8.48012859933e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7466       1.0000          .0000       10.000    
     3 'Normalizat'    1.3793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77480       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=   5422.796     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1866.1        .90712E-02** at limit **
   2  Index         2.7554        6.0113        .50000       -.83061E-05
   3  Normalizat    1.3794        .11399        .53502E-01    .19022E-03
   4  Prefactor     .77472        .99381E-01    .43388E-01    .14190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.75537
  Normalizat = 1.37936
  Prefactor  = 0.774724
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.796     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7554        6.3777        .50000       -.46556    
   3  Normalizat    1.3794        .22507        .23656E-03   -.81227    
   4  Prefactor     .77472        .19989        .27013E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25073e-10
Minuit parameter uncertainties:
  1  0.000159351
  2  4.9285
  3  0.225233
  4  0.200076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95581': 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) = 5422.79624967
delta logL = 3.19541868521e-08

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.594e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.755e+00  4.928e+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:  7.747e-01  2.001e-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.379e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.120 14.270

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/95581/cmap_HighResolution_396921601_397180801_4FGL_J1300.4+1416_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.38e-08', time_completed='2021-09-06 14:44:51.379415', job_id='95581', GAL2='0.77', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630964691.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='608' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:51 PDT 2021


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

Job <4FGL_J1300.4+1416_daily_bin608> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:25 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:26 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:35:26 2021
Terminated at Mon Sep  6 14:44:52 2021
Results reported at Mon Sep  6 14:44:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin608 195.12 14.2701 396921601 397180801 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 :                                   551.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

