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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin35
RA = 195.418, Dec = 33.6097
tmin = 248400001, tmax = 248659201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='99714', job_status='RUN', time_executed='2021-09-06 14:46:33.618644', time_epoch_executed='1630964793.62' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99714

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99714/ft1_4FGL_J1301.6+3336_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99714/ft1_4FGL_J1301.6+3336_daily_bin35.fits outfile=/scratch/kocevski/99714/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin35.fits ra=195.418 dec=33.6097 rad=12.0 tmin=248400001.0 tmax=248659201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.45
user 1.24
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/99714/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/99714/ltcube_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits
.....................!
real 12.75
user 12.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/99714/ltcube_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits outfile=/scratch/kocevski/99714/expmap_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/99714/ltcube_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits
.....................!
real 193.48
user 185.74
sys 5.28

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1301.6+3336 @ 195.418 33.6097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits scfile=/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits outfile=/scratch/kocevski/99714/cmap_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.418 yref=33.6097 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/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits scfile=/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits outfile=/scratch/kocevski/99714/cmap_HighResolution_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.418 yref=33.6097 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99714/Model_4FGL_J1301.6+3336_daily_bin35.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits.....................!
real 44.92
user 43.42
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits', '/scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits', expMap='/scratch/kocevski/99714/expmap_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits', expCube='/scratch/kocevski/99714/ltcube_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99714/Model_4FGL_J1301.6+3336_daily_bin35.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1301.6+3336'

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/99714/ft1_filtered_4FGL_J1301.6+3336_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/99714/ft2_4FGL_J1301.6+3336_daily_bin35.fits
Exposure map: /scratch/kocevski/99714/expmap_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits
Exposure cube: /scratch/kocevski/99714/ltcube_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99714/Model_4FGL_J1301.6+3336_daily_bin35.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8476       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2527       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9490       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3138       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.597       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4914       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6266       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3004       1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .59394E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8409       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.278       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8941       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79198       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5300.495     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3925 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.162       -.13642E-05** at limit **
   2  norm          3.8477        3.4121        .28879E-07    .25969E-04
   3  Prefactor     1.3693        6.7631        .20661E-05    .84744E-04
   4  Prefactor     1.2531        2.5261        .15711E-07    .47409E-04
   5  Prefactor     5.9491        2.6902        .93671E-07    .15080E-04
   6  norm          1.3981        3.0337        .77664E-07    .26103E-04
   7  Prefactor     14.248        10.037        .14641E-06   -.21804E-05
   8  Prefactor     .10000E-03    17.246       -.82825E-06** at limit **
   9  Prefactor     .10000E-03    85.533        .35916E-05** at limit **
  10  Prefactor     .10000E-03    2.9383       -.58328E-07** at limit **
  11  Prefactor     .10000E-03    5.4039        .65962E-07** at limit **
  12  norm          1.3150        3.3340        .11369E-05    .10002E-03
  13  Prefactor     .10000E-03    24.912        .12044E-05** at limit **
  14  Prefactor     28.571        25.325        .48469E-06   -.11976E-03
  15  norm          5.4920        3.4022        .17370E-06    .51366E-05
  16  Prefactor     .10000E-03    7.6088        .67012E-06** at limit **
  17  norm          .10000E-03    1.4910        .16047E-06** at limit **
  18  norm          .10000E-03    16.561        .41501E-06** at limit **
  19  norm          3.6276        5.7303       -.66895E-06   -.39565E-03
  20  norm          3.2996        7.3326        .30428E-06   -.15163E-03
  21  norm          .10000E-03    11.427        .58285E-06** at limit **
  22  Prefactor     .10000E-03    7.2646        .40307E-05** at limit **
  23  Prefactor     .10000E-03    17.611       -.17489E-06** at limit **
  24  Prefactor     .10000E-03    48.716       -.41293E-05** at limit **
  25  Prefactor     5.8483        14.391        .11553E-05   -.43561E-04
  26  Prefactor     .10000E-03    26.216        .30129E-05** at limit **
  27  Prefactor     24.241        67.399        .11759E-04   -.20292E-05
  28  Prefactor     5.8936        3.9030        .29777E-06   -.26596E-04
  29  Normalizat    .79168        .17734       -.30971E-05   -.11260E-03
  30  Prefactor     1.1733        .21497        .11076E-05   -.33721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.84772
  Prefactor  = 1.3693
  Prefactor  = 1.25311
  Prefactor  = 5.9491
  norm       = 1.39809
  Prefactor  = 14.2479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31502
  Prefactor  = 0.0001
  Prefactor  = 28.5707
  norm       = 5.49197
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.62759
  norm       = 3.29964
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84828
  Prefactor  = 0.0001
  Prefactor  = 24.2415
  Prefactor  = 5.89362
  Normalizat = 0.791682
  Prefactor  = 1.1733
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.495     FROM HESSE     STATUS=OK           584 CALLS     4509 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8477        3.4164        .10471E-03   -1.5316    
   3  Prefactor     1.3693        10.744        .18623E-02   -1.5474    
   4  Prefactor     1.2531        2.4831        .13604E-03   -1.5484    
   5  Prefactor     5.9491        2.6837        .75496E-04   -1.5220    
   6  norm          1.3981        2.9941        .18092E-03   -1.5471    
   7  Prefactor     14.248        10.031        .10610E-03   -1.4953    
   8  Prefactor     .10000E-03    17.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    86.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9477        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5597        .33043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3150        3.5177        .10490E-02   -1.5479    
  13  Prefactor     .10000E-03    24.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.571        25.262        .74919E-04   -1.4638    
  15  norm          5.4920        3.4041        .10256E-03   -1.5239    
  16  Prefactor     .10000E-03    7.6356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4944        .86824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    16.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6276        5.8960        .14653E-03   -1.5327    
  20  norm          3.2996        7.5814        .20805E-03   -1.5345    
  21  norm          .10000E-03    11.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.264        .18193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8483        14.363        .16617E-03   -1.5224    
  26  Prefactor     .10000E-03    26.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.241        67.483        .81298E-04   -1.4723    
  28  Prefactor     5.8936        3.9034        .11347E-03   -1.5222    
  29  Normalizat    .79168        .20054        .24204E-03   -1.0038    
  30  Prefactor     1.1733        .24702        .25881E-03   -.87157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50696e-10
Minuit parameter uncertainties:
  1  1.57303e-05
  2  3.4166
  3  7.67297
  4  2.48333
  5  2.68377
  6  2.99438
  7  10.0318
  8  2.18549e-05
  9  0.000137057
  10  2.39255e-06
  11  1.48335e-05
  12  3.5183
  13  3.68587e-05
  14  25.2718
  15  3.40422
  16  1.88594e-05
  17  2.09275e-06
  18  1.81045e-05
  19  5.89694
  20  7.58358
  21  8.40629e-06
  22  0.000165564
  23  5.89295e-05
  24  7.30781e-05
  25  14.3715
  26  5.75834e-05
  27  67.6966
  28  3.90356
  29  0.200732
  30  0.247262
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.857e+01  2.527e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.173e+00  2.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  7.917e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.03e-05

TS (Fixed Index): 2.43
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99714/likelihoodResults_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5300.39407368
delta logL = 0.100675226491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5300.38876119
delta logL = 0.105987714208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.666       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2579       1.0000          .0000       10.000    
     3 'Normalizat'    .80535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1611       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   5300.389     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      303 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.672        32.756        .66186E-04    .17349E-04
   2  Index         2.2578        .68860        .89443E-02    .14577E-03
   3  Normalizat    .80541        .19214        .24013E-03    .31815E-04
   4  Prefactor     1.1610        .24346        .25992E-03   -.26638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6717
  Index      = 2.25781
  Normalizat = 0.805413
  Prefactor  = 1.16104
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.389     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.672        32.311        .26475E-05   -1.4496    
   2  Index         2.2578        .67865        .17889E-02   -.58049    
   3  Normalizat    .80541        .19223        .96052E-05   -.99868    
   4  Prefactor     1.1610        .24363        .10397E-04   -.87539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87679e-11
Minuit parameter uncertainties:
  1  32.3265
  2  0.68167
  3  0.192395
  4  0.243869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99714': 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) = 5300.38876109
delta logL = 0.105987817111

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.667e+01  3.233e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.258e+00  6.817e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.161e+00  2.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.054e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.26 +/- 0.68
Photon Flux (Free Index): 3.53e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.42e-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/99714/cmap_HighResolution_248400001_248659201_4FGL_J1301.6+3336_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='1.43e-05', photon_flux_error='3.91e-08', dlogl='1.06e-01', energy_flux='1.17e-05', photon_flux2='3.53e-08', job_status='DONE', time_completed='2021-09-06 14:59:09.789403', photon_index_error2='0.68', photon_index2='2.26', ts='2.43', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.42e-05', EG='0.79', time_epoch_completed='1630965549.79', return_code='0', job_id='99714', GAL2='1.16', EG2='0.81', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='3.61e-08', ts2='2.63', photon_index='2.59' WHERE bin_id='35' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 99714: <4FGL_J1301.6+3336_daily_bin35> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin35> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:45:59 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:46:01 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:46:01 2021
Terminated at Mon Sep  6 14:59:10 2021
Results reported at Mon Sep  6 14:59:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin35 195.418 33.6097 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1301.6+3336 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   749.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

