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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin738
RA = 195.12, Dec = 14.2701
tmin = 430617601, tmax = 430876801
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='95780', job_status='RUN', time_executed='2021-09-06 14:38:15.267240', time_epoch_executed='1630964295.27' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95780

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95780/ft1_4FGL_J1300.4+1416_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95780/ft2_4FGL_J1300.4+1416_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95780/ft1_4FGL_J1300.4+1416_daily_bin738.fits outfile=/scratch/kocevski/95780/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin738.fits ra=195.12 dec=14.2701 rad=12.0 tmin=430617601.0 tmax=430876801.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 5.53
user 5.20
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95780/ft1_filtered_4FGL_J1300.4+1416_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/95780/ft2_4FGL_J1300.4+1416_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/95780/ltcube_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.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/95780/ft2_4FGL_J1300.4+1416_daily_bin738.fits
.....................!
real 19.82
user 19.27
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95780/ft1_filtered_4FGL_J1300.4+1416_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/95780/ft2_4FGL_J1300.4+1416_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/95780/ltcube_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.fits outfile=/scratch/kocevski/95780/expmap_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.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/95780/ltcube_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.fits
.....................!
real 195.96
user 188.27
sys 6.41

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/95780/ft1_filtered_4FGL_J1300.4+1416_daily_bin738.fits scfile=/scratch/kocevski/95780/ft2_4FGL_J1300.4+1416_daily_bin738.fits outfile=/scratch/kocevski/95780/cmap_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95780/ft1_filtered_4FGL_J1300.4+1416_daily_bin738.fits scfile=/scratch/kocevski/95780/ft2_4FGL_J1300.4+1416_daily_bin738.fits outfile=/scratch/kocevski/95780/cmap_HighResolution_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.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.61
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15497E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.318       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7673       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11546E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86044       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0053       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=   4573.302     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1774 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7515        .12756E-07** at limit **
   2  Prefactor     .10000E-03    13.223        .10044E-05** at limit **
   3  norm          1.7803        .46094        .12464E-08   -.20854E-05
   4  Prefactor     8.2088        964.83        .54747E-05    .11202E-06
   5  Prefactor     9.0136        8.4905       -.75343E-07    .33073E-04
   6  Prefactor     .10000E-03    43.686       -.11290E-05** at limit **
   7  norm          5.0468        2.5722       -.78841E-08   -.31476E-05
   8  Prefactor     .10000E-03    61.902        .26518E-05** at limit **
   9  Prefactor     10.451        9.2886       -.56819E-08    .33529E-05
  10  Prefactor     67.967        24.914        .31902E-06   -.37888E-04
  11  Prefactor     14.328        22.502       -.46240E-06   -.58650E-05
  12  norm          2.7683        3.7083       -.80833E-07    .40156E-04
  13  norm          .10000E-03    8.1373        .37764E-07** at limit **
  14  norm          .10000E-03    14.608        .34366E-05** at limit **
  15  Prefactor     .10000E-03    6.0897        .23390E-07** at limit **
  16  Prefactor     .10000E-03    45.569       -.12198E-05** at limit **
  17  norm          3.4310        8.8627       -.15806E-05    .25028E-06
  18  Prefactor     .10000E-03    18.747        .11446E-05** at limit **
  19  Normalizat    .85974        .23002       -.10431E-06   -.23696E-04
  20  Prefactor     1.0058        .18933       -.14512E-06   -.22854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78032
  Prefactor  = 8.20883
  Prefactor  = 9.01357
  Prefactor  = 0.0001
  norm       = 5.04683
  Prefactor  = 0.0001
  Prefactor  = 10.4511
  Prefactor  = 67.9674
  Prefactor  = 14.3276
  norm       = 2.76829
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43096
  Prefactor  = 0.0001
  Normalizat = 0.859741
  Prefactor  = 1.00582
 **********
 **   18 **HESSE 
 **********

 FCN=   4573.302     FROM HESSE     STATUS=OK           295 CALLS     2069 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7717        .87388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7803        .46199        .22575E-04   -1.5441    
   4  Prefactor     8.2088        968.13        .13978E-03   -1.5135    
   5  Prefactor     9.0136        8.4845        .13347E-03   -1.5107    
   6  Prefactor     .10000E-03    44.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0468        2.5710        .73836E-04   -1.5259    
   8  Prefactor     .10000E-03    61.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.451        9.2943        .12395E-03   -1.5061    
  10  Prefactor     67.967        24.920        .48684E-04   -1.4057    
  11  Prefactor     14.328        22.480        .10585E-03   -1.4951    
  12  norm          2.7683        3.6965        .14591E-03   -1.5375    
  13  norm          .10000E-03    8.1400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.535        .30446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1328        .16298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4310        8.8644        .21857E-03   -1.5337    
  18  Prefactor     .10000E-03    18.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85974        .27257        .29304E-03   -.97890    
  20  Prefactor     1.0058        .22439        .23380E-03   -.92536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66426e-12
Minuit parameter uncertainties:
  1  4.27763e-07
  2  1.21796e-05
  3  0.461991
  4  181.383
  5  8.48563
  6  2.2108e-05
  7  2.5711
  8  3.29657e-06
  9  9.29555
  10  24.9234
  11  22.4932
  12  3.69676
  13  5.7656e-07
  14  2.35365e-06
  15  8.87233e-07
  16  2.24955e-07
  17  8.86776
  18  2.17918e-05
  19  0.273007
  20  0.2246
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.433e+01  2.249e+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.006e+00  2.246e-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.597e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95780/likelihoodResults_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.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) = 4573.2521638
delta logL = 0.0502692599894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4573.13263621
delta logL = 0.169796849444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42890E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.5580       1.0000          .0000       10.000    
     3 'Normalizat'    .81556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4573.133     FROM MIGRAD    STATUS=FAILED       104 CALLS      397 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39060E-02    .27721        .49627E-04    .20322E-02
   2  Index         9.6243        5.0259        .39071E-01   -.45560E-04
   3  Normalizat    .81630        .18264        .30002E-03   -.44372E-04
   4  Prefactor     1.0454        .15396        .23009E-03   -.81853E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4573.133     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      489 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39060E-02    .27721        .10443E-04    .20322E-02
   2  Index         9.6243        5.0259        .36005E-02   -.45560E-04
   3  Normalizat    .81630        .18264        .15731E-03   -.44372E-04
   4  Prefactor     1.0454        .15396        .58566E-04   -.81853E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4573.133     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      519 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39060E-02    .28775        .19851E-05    .62998E-04
   2  Index         9.6243        5.0717        .78143E-02   -.17211E-05
   3  Normalizat    .81630        .25396        .12001E-04    .75785E-06
   4  Prefactor     1.0454        .21416        .46018E-04   -.12007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00390599
  Index      = 9.62428
  Normalizat = 0.816296
  Prefactor  = 1.04544
 **********
 **   18 **HESSE 
 **********

 FCN=   4573.133     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      546 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39060E-02    .28888        .79403E-07   -1.5696    
   2  Index         9.6243        5.0841        .15629E-02    1.1807    
   3  Normalizat    .81630        .26980        .24002E-05   -.99467    
   4  Prefactor     1.0454        .22745        .92036E-05   -.91230    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33665e-12
Minuit parameter uncertainties:
  1  0.0663171
  2  12.1014
  3  0.270245
  4  0.227664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95780': 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): 102
logL (Free Index) = 4573.13261372
delta logL = 0.169819342135

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.906e-03  6.632e-02  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  9.624e+00  1.210e+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.045e+00  2.277e-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.163e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
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/95780/cmap_HighResolution_430617601_430876801_4FGL_J1300.4+1416_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2021-09-06 14:47:30.901503', job_id='95780', GAL2='1.05', fit_tolerance='1e-08', EG2='0.82', EG='0.86', time_epoch_completed='1630964850.9', return_code2='102', ts='0.52', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.70e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='738' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 95780: <4FGL_J1300.4+1416_daily_bin738> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin738> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:39 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:41 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:41 2021
Terminated at Mon Sep  6 14:47:31 2021
Results reported at Mon Sep  6 14:47:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin738 195.12 14.2701 430617601 430876801 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 :                                   550.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

