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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin578
RA = 195.418, Dec = 33.6097
tmin = 389145601, tmax = 389404801
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='103062', job_status='RUN', time_executed='2021-09-06 14:56:07.494021', time_epoch_executed='1630965367.49' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103062/ft1_4FGL_J1301.6+3336_daily_bin578.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103062/ft1_4FGL_J1301.6+3336_daily_bin578.fits outfile=/scratch/kocevski/103062/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin578.fits ra=195.418 dec=33.6097 rad=12.0 tmin=389145601.0 tmax=389404801.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.62
user 5.21
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.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/103062/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin578.fits evtable="EVENTS" outfile="/scratch/kocevski/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/103062/ltcube_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.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/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits
.....................!
real 11.83
user 11.21
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/103062/ltcube_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.fits outfile=/scratch/kocevski/103062/expmap_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.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/103062/ltcube_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.fits
.....................!
real 191.43
user 186.03
sys 5.01

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/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits scfile=/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits outfile=/scratch/kocevski/103062/cmap_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits scfile=/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits outfile=/scratch/kocevski/103062/cmap_HighResolution_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103062/Model_4FGL_J1301.6+3336_daily_bin578.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/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits.....................!
real 44.22
user 42.71
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits', '/scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits', expMap='/scratch/kocevski/103062/expmap_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.fits', expCube='/scratch/kocevski/103062/ltcube_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/103062/Model_4FGL_J1301.6+3336_daily_bin578.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/103062/ft1_filtered_4FGL_J1301.6+3336_daily_bin578.fits
Spacecraft file(s): /scratch/kocevski/103062/ft2_4FGL_J1301.6+3336_daily_bin578.fits
Exposure map: /scratch/kocevski/103062/expmap_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.fits
Exposure cube: /scratch/kocevski/103062/ltcube_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/103062/Model_4FGL_J1301.6+3336_daily_bin578.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) = 4891.35762976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.679       1.0000         .10000E-03   10000.    
     2 'norm      '    11.649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4637       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23893       1.0000         .10000E-03   10000.    
     6 'norm      '    9.8694       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.509       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.685       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34069E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3428       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.890       1.0000         .10000E-03   10000.    
    17 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.837       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3514       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.673       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6432       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3306       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3464       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .48764       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=   4891.348     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3912 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.680        39.452        .26631E-06   -.17924E-04
   2  norm          11.648        5.2726       -.15854E-07   -.23940E-03
   3  Prefactor     .10000E-03    4.8804       -.12026E-06** at limit **
   4  Prefactor     9.4630        4.3100       -.19803E-07   -.24441E-03
   5  Prefactor     .24817        2.0436        .42013E-06   -.38235E-03
   6  norm          9.8699        6.5262        .27006E-07   -.64574E-04
   7  Prefactor     13.505        12.523       -.45441E-07   -.88045E-04
   8  Prefactor     .10000E-03    30.530       -.74450E-07** at limit **
   9  Prefactor     56.748        60.217        .34222E-06    .23441E-04
  10  Prefactor     1.2226        15.799        .31695E-05   -.22090E-04
  11  Prefactor     .10023E-03    12.227        .28522E-05** at limit **
  12  norm          3.1529        3.5888       -.28826E-07   -.13060E-03
  13  Prefactor     .10000E-03    16.534       -.49372E-07** at limit **
  14  Prefactor     .10000E-03    34.834       -.15816E-06** at limit **
  15  norm          5.3449        4.2239       -.73183E-07   -.10037E-03
  16  Prefactor     24.826        19.943       -.19071E-05   -.61017E-03
  17  norm          .10000E-03    2.1729        .14737E-06** at limit **
  18  norm          .10000E-03    5.7746       -.55516E-07** at limit **
  19  norm          .10000E-03    1.5113        .36541E-07** at limit **
  20  norm          .10000E-03    1.8675        .10790E-07** at limit **
  21  norm          10.837        13.180       -.48757E-08   -.81454E-05
  22  Prefactor     4.3515        3.4010        .81821E-07   -.20741E-03
  23  Prefactor     .10000E-03    5.3721        .20809E-06** at limit **
  24  Prefactor     33.738        55.510        .49931E-06    .20860E-04
  25  Prefactor     .10000E-03    17.148        .32597E-06** at limit **
  26  Prefactor     2.5757        58.975        .13869E-05   -.23772E-05
  27  Prefactor     .10000E-03    52.831        .75682E-07** at limit **
  28  Prefactor     3.3325        4.5397        .27677E-06   -.18640E-04
  29  Normalizat    1.3460        .21035       -.22916E-05   -.34937E-03
  30  Prefactor     .48778        .23993        .25840E-05   -.26468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6802
  norm       = 11.6482
  Prefactor  = 0.0001
  Prefactor  = 9.46296
  Prefactor  = 0.248167
  norm       = 9.86993
  Prefactor  = 13.5052
  Prefactor  = 0.0001
  Prefactor  = 56.7482
  Prefactor  = 1.22263
  Prefactor  = 0.000100232
  norm       = 3.15295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.34492
  Prefactor  = 24.8258
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.8372
  Prefactor  = 4.35153
  Prefactor  = 0.0001
  Prefactor  = 33.738
  Prefactor  = 0.0001
  Prefactor  = 2.57575
  Prefactor  = 0.0001
  Prefactor  = 3.33245
  Normalizat = 1.34605
  Prefactor  = 0.487779
 **********
 **   18 **HESSE 
 **********

 FCN=   4891.348     FROM HESSE     STATUS=OK           592 CALLS     4504 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.680        39.441        .88079E-04   -1.4798    
   2  norm          11.648        5.2745        .95658E-04   -1.5025    
   3  Prefactor     .10000E-03    4.9066        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4630        4.3160        .87298E-04   -1.5093    
   5  Prefactor     .24817        10.711        .17554E-02   -1.5608    
   6  norm          9.8699        6.5133        .12755E-03   -1.5080    
   7  Prefactor     13.505        12.536        .10898E-03   -1.4973    
   8  Prefactor     .10000E-03    30.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.748        60.190        .26641E-03   -1.4200    
  10  Prefactor     1.2226        15.290        .40849E-03   -1.5487    
  11  Prefactor     .10023E-03    87.488        .39784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1529        3.5808        .13643E-03   -1.5353    
  13  Prefactor     .10000E-03    16.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3449        4.2061        .12207E-03   -1.5246    
  16  Prefactor     24.826        20.083        .80293E-04   -1.4711    
  17  norm          .10000E-03    2.1800        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7844        .16414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5202        .83951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8686        .93339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.837        13.178        .12171E-03   -1.5049    
  22  Prefactor     4.3515        3.3988        .10759E-03   -1.5291    
  23  Prefactor     .10000E-03    5.3754        .15830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.738        55.434        .69056E-04   -1.4546    
  25  Prefactor     .10000E-03    17.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.5757        58.656        .25077E-03   -1.5387    
  27  Prefactor     .10000E-03    52.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3325        4.5231        .16705E-03   -1.5343    
  29  Normalizat    1.3460        .22880        .21356E-03   -.82202    
  30  Prefactor     .48778        .25912        .39092E-03   -1.1254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26436e-09
Minuit parameter uncertainties:
  1  39.4906
  2  5.27469
  3  4.8943e-06
  4  4.31614
  5  3.26074
  6  6.51379
  7  12.538
  8  1.61168e-05
  9  60.2548
  10  8.64963
  11  0.0090156
  12  3.581
  13  4.42649e-06
  14  3.87261e-06
  15  4.2063
  16  20.0883
  17  2.7312e-06
  18  2.34583e-06
  19  2.07403e-06
  20  6.3562e-07
  21  13.1816
  22  3.39899
  23  1.52502e-06
  24  55.5191
  25  4.56764e-07
  26  24.61
  27  3.09e-05
  28  4.52355
  29  0.228973
  30  0.259745
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.873e-06  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:  4.878e-01  2.597e-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:  1.346e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103062/likelihoodResults_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.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) = 4891.34794631
delta logL = -0.000134663402605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4891.34781163
delta logL = 1.96132532437e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8704       1.0000          .0000       10.000    
     3 'Normalizat'    1.3460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48778       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.

 FCN=   4891.348     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      244 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.670        .90712E-02** at limit **
   2  Index         2.8580        5.8871        .50000        .29296E-05
   3  Normalizat    1.3460        .45862E-02    .48310E-01    .35484E-04
   4  Prefactor     .48778        .53181E-02    .88215E-01    .39554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85798
  Normalizat = 1.34605
  Prefactor  = 0.487782
 **********
 **   18 **HESSE 
 **********

 FCN=   4891.348     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    887.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8580        5.9069        .50000       -.44272    
   3  Normalizat    1.3460        .24457E-01    .21356E-03   -.82202    
   4  Prefactor     .48778        .28276E-01    .39092E-03   -1.1254    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57902e-07
Minuit parameter uncertainties:
  1  0.000934241
  2  632.585
  3  0.0244568
  4  0.0282772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103062': 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) = 4891.34781161
delta logL = 3.76121533918e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  9.342e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.858e+00  6.326e+02  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:  4.878e-01  2.828e-02  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:  1.346e+00  2.446e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.418 33.610

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/103062/cmap_HighResolution_389145601_389404801_4FGL_J1301.6+3336_daily_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-06 15:08:26.180059', job_id='103062', GAL2='0.49', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630966106.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='3.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='578' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:08:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 103062: <4FGL_J1301.6+3336_daily_bin578> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin578> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:55:52 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:55:53 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:55:53 2021
Terminated at Mon Sep  6 15:08:26 2021
Results reported at Mon Sep  6 15:08:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin578 195.418 33.6097 389145601 389404801 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 :                                   728.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            754 sec.

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

