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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin496
RA = 195.12, Dec = 14.2701
tmin = 367891201, tmax = 368150401
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='94281', job_status='RUN', time_executed='2021-09-06 14:34:44.240346', time_epoch_executed='1630964084.24' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94281/ft1_4FGL_J1300.4+1416_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94281/ft2_4FGL_J1300.4+1416_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94281/ft1_4FGL_J1300.4+1416_daily_bin496.fits outfile=/scratch/kocevski/94281/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin496.fits ra=195.12 dec=14.2701 rad=12.0 tmin=367891201.0 tmax=368150401.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.32
user 3.11
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94281/ft1_filtered_4FGL_J1300.4+1416_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/94281/ft2_4FGL_J1300.4+1416_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/94281/ltcube_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.fits outfile=/scratch/kocevski/94281/expmap_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.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/94281/ltcube_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.fits
.....................!
real 189.52
user 185.19
sys 3.99

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/94281/ft1_filtered_4FGL_J1300.4+1416_daily_bin496.fits scfile=/scratch/kocevski/94281/ft2_4FGL_J1300.4+1416_daily_bin496.fits outfile=/scratch/kocevski/94281/cmap_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94281/ft1_filtered_4FGL_J1300.4+1416_daily_bin496.fits scfile=/scratch/kocevski/94281/ft2_4FGL_J1300.4+1416_daily_bin496.fits outfile=/scratch/kocevski/94281/cmap_HighResolution_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5492       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4770       1.0000         .10000E-03   10000.    
    14 'norm      '    8.9367       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93489E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.873       1.0000         .10000E-03   10000.    
    17 'norm      '    .97783       1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.407       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0802       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=   6283.167     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2060 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1546        4.1395        .21157E-06   -.52919E-04
   2  Prefactor     .10000E-03    56.372       -.16581E-05** at limit **
   3  norm          1.1579        .34022        .22897E-07   -.29275E-03
   4  Prefactor     .10000E-03    90.146        .15496E-05** at limit **
   5  Prefactor     .10000E-03    16.166        .15700E-06** at limit **
   6  Prefactor     .10000E-03    9.7243        .41060E-07** at limit **
   7  norm          2.5492        1.8195        .79829E-07   -.11633E-03
   8  Prefactor     11.271        54.988        .31691E-05   -.40140E-04
   9  Prefactor     .10000E-03    3.0030        .20055E-07** at limit **
  10  Prefactor     .10035E-03    12.059        .25088E-05** at limit **
  11  Prefactor     .10000E-03    35.292        .23390E-06** at limit **
  12  norm          .10000E-03    .92273        .34177E-08** at limit **
  13  norm          1.4775        24.504        .18802E-05   -.14188E-04
  14  norm          8.9372        6.4531       -.22817E-06   -.16279E-03
  15  Prefactor     .10006E-03    9.1046        .13583E-05** at limit **
  16  Prefactor     45.867        34.057       -.49202E-06   -.65078E-04
  17  norm          .97817        7.6105        .31765E-05   -.25715E-04
  18  Prefactor     66.395        64.822       -.20977E-05   -.69865E-04
  19  Normalizat    1.2666        .21058       -.26669E-05   -.43317E-03
  20  Prefactor     1.0804        .17969        .21110E-06   -.53581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15462
  Prefactor  = 0.0001
  norm       = 1.15792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54922
  Prefactor  = 11.2714
  Prefactor  = 0.0001
  Prefactor  = 0.000100351
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.47748
  norm       = 8.93723
  Prefactor  = 0.000100064
  Prefactor  = 45.8671
  norm       = 0.978171
  Prefactor  = 66.3948
  Normalizat = 1.26664
  Prefactor  = 1.0804
 **********
 **   18 **HESSE 
 **********

 FCN=   6283.167     FROM HESSE     STATUS=OK           289 CALLS     2349 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1546        4.1379        .13901E-03   -1.5254    
   2  Prefactor     .10000E-03    56.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1579        .34051        .24176E-04   -1.5493    
   4  Prefactor     .10000E-03    90.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5492        1.8143        .87127E-04   -1.5389    
   8  Prefactor     11.271        55.935        .11953E-03   -1.5036    
   9  Prefactor     .10000E-03    3.0194        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10035E-03    58.982        .46392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .92431        .74359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4775        24.722        .35332E-03   -1.5465    
  14  norm          8.9372        6.3988        .13408E-03   -1.5110    
  15  Prefactor     .10006E-03    98.313        .45068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.867        34.075        .29599E-03   -1.4352    
  17  norm          .97817        7.6483        .41272E-03   -1.5510    
  18  Prefactor     66.395        64.940        .49251E-04   -1.4076    
  19  Normalizat    1.2666        .24676        .27192E-03   -.84568    
  20  Prefactor     1.0804        .21652        .25671E-03   -.90096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63662e-09
Minuit parameter uncertainties:
  1  4.13814
  2  4.49705e-05
  3  0.340506
  4  0.000174025
  5  4.48237e-05
  6  7.02445e-06
  7  1.81436
  8  50.2935
  9  6.23515e-06
  10  0.00911245
  11  7.22315e-05
  12  9.80364e-07
  13  12.0929
  14  6.39932
  15  0.00500804
  16  34.0898
  17  5.4711
  18  65.009
  19  0.246985
  20  0.216692
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.223e-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:  1.080e+00  2.167e-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.267e+00  2.470e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94281/likelihoodResults_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.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) = 6283.16721398
delta logL = -0.000130798587634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6283.16708365
delta logL = -4.73744876217e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8139       1.0000          .0000       10.000    
     3 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0804       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=   6283.152     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      353 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8666        6425.6        .36285E-02    .58663E-04
   2  Index         2.0065        6.4751        .50000       -.18337E-04
   3  Normalizat    1.2677        .12321        .27192E-03   -.10628E-03
   4  Prefactor     1.0766        .17684        .25671E-03   -.14234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86656
  Index      = 2.00652
  Normalizat = 1.26774
  Prefactor  = 1.07657
 **********
 **   18 **HESSE 
 **********

 FCN=   6283.152     FROM HESSE     STATUS=OK            29 CALLS      382 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8666        17.323        .14514E-03   -1.5435    
   2  Index         2.0065        1.7561        .13680E-01   -.64187    
   3  Normalizat    1.2677        .24244        .10877E-04   -.84534    
   4  Prefactor     1.0766        .21533        .10268E-04   -.90219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05732e-11
Minuit parameter uncertainties:
  1  11.3767
  2  1.81787
  3  0.242655
  4  0.215504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94281': 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) = 6283.15189746
delta logL = 0.0151857222345

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.867e+00  1.138e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.007e+00  1.818e+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.077e+00  2.155e-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.268e+00  2.427e-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/94281/cmap_HighResolution_367891201_368150401_4FGL_J1300.4+1416_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-06 14:44:42.545698', job_id='94281', GAL2='1.08', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630964682.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.52e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='496' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 94281: <4FGL_J1300.4+1416_daily_bin496> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin496 195.12 14.2701 367891201 368150401 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 :                                   597.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

