/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7419
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin650
RA = 195.418, Dec = 33.6097
tmin = 407808001, tmax = 408067201
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='103159', job_status='RUN', time_executed='2021-09-06 14:57:39.675906', time_epoch_executed='1630965459.68' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103159/ft1_4FGL_J1301.6+3336_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103159/ft2_4FGL_J1301.6+3336_daily_bin650.fits


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

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

Done.
real 4.10
user 3.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103159/ft1_filtered_4FGL_J1301.6+3336_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/103159/ft2_4FGL_J1301.6+3336_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/103159/ltcube_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.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/103159/ft2_4FGL_J1301.6+3336_daily_bin650.fits
.....................!
real 12.00
user 11.66
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103159/ft1_filtered_4FGL_J1301.6+3336_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/103159/ft2_4FGL_J1301.6+3336_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/103159/ltcube_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.fits outfile=/scratch/kocevski/103159/expmap_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.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/103159/ltcube_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.fits
.....................!
real 191.11
user 185.79
sys 4.90

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/103159/ft1_filtered_4FGL_J1301.6+3336_daily_bin650.fits scfile=/scratch/kocevski/103159/ft2_4FGL_J1301.6+3336_daily_bin650.fits outfile=/scratch/kocevski/103159/cmap_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103159/ft1_filtered_4FGL_J1301.6+3336_daily_bin650.fits scfile=/scratch/kocevski/103159/ft2_4FGL_J1301.6+3336_daily_bin650.fits outfile=/scratch/kocevski/103159/cmap_HighResolution_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1087       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1141       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.411       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.263       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.857       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3634       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11611E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.182       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.202       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.213       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.9736       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3373       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72644       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=   5254.545     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3972 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.642        .60212E-06** at limit **
   2  norm          8.0656        3.4627       -.78263E-07   -.13780E-03
   3  Prefactor     .10000E-03    6.5970        .59820E-07** at limit **
   4  Prefactor     1.1088        1.4055       -.41939E-07    .13839E-04
   5  Prefactor     .10000E-03    .90872        .18326E-07** at limit **
   6  norm          1.2662        4.2266       -.27601E-07    .58836E-05
   7  Prefactor     1.1153        25.660        .10260E-04   -.91944E-04
   8  Prefactor     .10000E-03    8.9486       -.43458E-07** at limit **
   9  Prefactor     58.129        93.224        .32180E-05    .37028E-04
  10  Prefactor     .10000E-03    2.5317       -.97725E-08** at limit **
  11  Prefactor     .10000E-03    3.2933        .91311E-08** at limit **
  12  norm          .10000E-03    3.2199        .46047E-06** at limit **
  13  Prefactor     .10000E-03    27.000       -.73190E-06** at limit **
  14  Prefactor     56.403        39.239       -.56243E-06   -.12594E-03
  15  norm          7.0354        3.9825        .50354E-07   -.59043E-04
  16  Prefactor     21.252        21.031       -.12180E-06   -.58650E-04
  17  norm          .10000E-03    3.6666        .24944E-06** at limit **
  18  norm          23.860        18.604        .77898E-07   -.13384E-04
  19  norm          .10000E-03    1.2498        .13855E-06** at limit **
  20  norm          .10000E-03    2.0062        .90657E-07** at limit **
  21  norm          2.3649        21.004        .41913E-06    .51049E-05
  22  Prefactor     .10000E-03    2.6141        .13213E-05** at limit **
  23  Prefactor     13.149        14.557       -.32051E-05   -.30301E-03
  24  Prefactor     .10000E-03    37.153        .88145E-06** at limit **
  25  Prefactor     .10000E-03    31.742       -.63774E-06** at limit **
  26  Prefactor     43.211        31.649       -.23041E-06   -.34077E-04
  27  Prefactor     23.203        45.807        .10148E-05    .17076E-04
  28  Prefactor     9.9716        7.8096        .21663E-06    .12747E-04
  29  Normalizat    1.3376        .20967       -.60473E-06   -.11427E-06
  30  Prefactor     .72606        .23928       -.10767E-05   -.20215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.06562
  Prefactor  = 0.0001
  Prefactor  = 1.10875
  Prefactor  = 0.0001
  norm       = 1.26622
  Prefactor  = 1.11525
  Prefactor  = 0.0001
  Prefactor  = 58.129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 56.4032
  norm       = 7.03542
  Prefactor  = 21.2522
  norm       = 0.0001
  norm       = 23.8595
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.36491
  Prefactor  = 0.0001
  Prefactor  = 13.1491
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 43.2114
  Prefactor  = 23.2031
  Prefactor  = 9.97163
  Normalizat = 1.33756
  Prefactor  = 0.726063
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.545     FROM HESSE     STATUS=OK           586 CALLS     4558 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0656        3.4677        .84799E-04   -1.5140    
   3  Prefactor     .10000E-03    6.6831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1088        1.3851        .93355E-04   -1.5497    
   5  Prefactor     .10000E-03    .92296        .67451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.2662        4.2133        .25961E-03   -1.5483    
   7  Prefactor     1.1153        26.275        .22328E-02   -1.5497    
   8  Prefactor     .10000E-03    8.9525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.129        93.343        .52596E-04   -1.4182    
  10  Prefactor     .10000E-03    2.5376        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3006        .12845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1974        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     56.403        39.444        .53410E-04   -1.4205    
  15  norm          7.0354        3.9837        .10494E-03   -1.5177    
  16  Prefactor     21.252        21.043        .86862E-04   -1.4786    
  17  norm          .10000E-03    3.6838        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.860        18.608        .82010E-04   -1.4731    
  19  norm          .10000E-03    1.2561        .79130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0104        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3649        20.988        .26656E-03   -1.5400    
  22  Prefactor     .10000E-03    4.5182        .21729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.149        15.345        .11032E-03   -1.4983    
  24  Prefactor     .10000E-03    37.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    31.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.211        31.627        .60993E-04   -1.4392    
  27  Prefactor     23.203        45.820        .83138E-04   -1.4744    
  28  Prefactor     9.9716        7.8266        .12688E-03   -1.5076    
  29  Normalizat    1.3376        .24874        .23189E-03   -.82452    
  30  Prefactor     .72606        .27829        .35320E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17391e-09
Minuit parameter uncertainties:
  1  0.000102283
  2  3.46774
  3  2.15969e-05
  4  1.38518
  5  2.91867e-06
  6  4.21434
  7  10.8313
  8  1.27905e-05
  9  93.5789
  10  4.02975e-06
  11  2.43197e-05
  12  9.83214e-05
  13  8.59274e-05
  14  39.462
  15  3.98388
  16  21.0508
  17  2.92414e-05
  18  18.6128
  19  5.72473e-06
  20  3.48432e-06
  21  14.0968
  22  7.06281e-05
  23  15.3497
  24  0.000160088
  25  0.000398759
  26  31.6393
  27  45.8896
  28  7.82738
  29  0.248966
  30  0.278831
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  5.640e+01  3.946e+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:  7.261e-01  2.788e-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.338e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 8.74e-08 +/- 6.11e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.61e-05

TS (Fixed Index): 2.98
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 2.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103159/likelihoodResults_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.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) = 5254.35566384
delta logL = 0.188954042285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5254.33538829
delta logL = 0.209229584193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.964       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0339       1.0000          .0000       10.000    
     3 'Normalizat'    1.3067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75400       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=   5254.335     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      296 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.956        49.710        .66827E-04    .56140E-05
   2  Index         3.0339        .88025        .49703E-02   -.24714E-04
   3  Normalizat    1.3066        .24656        .23411E-03   -.32347E-03
   4  Prefactor     .75422        .28035        .34722E-03   -.26098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9562
  Index      = 3.0339
  Normalizat = 1.30655
  Prefactor  = 0.754221
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.335     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.956        42.614        .26731E-05   -1.4508    
   2  Index         3.0339        .75469        .19881E-03   -.40413    
   3  Normalizat    1.3066        .24623        .46821E-04   -.83371    
   4  Prefactor     .75422        .27964        .13889E-04   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30986e-10
Minuit parameter uncertainties:
  1  42.6503
  2  0.758126
  3  0.246451
  4  0.280168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103159': 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) = 5254.33538788
delta logL = 0.209230000438

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.596e+01  4.265e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.034e+00  7.581e-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:  7.542e-01  2.802e-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.307e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 195.418 33.610
Photon Index (Free Index): 3.03 +/- 0.76
Photon Flux (Free Index): 1.11e-07 +/- 7.51e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.41e-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/103159/cmap_HighResolution_407808001_408067201_4FGL_J1301.6+3336_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='8.74e-08', energy_flux2='2.19e-05', photon_flux_error='6.11e-08', dlogl='2.09e-01', energy_flux='2.31e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-06 15:10:07.728519', photon_index_error2='0.76', photon_index2='3.03', ts='2.98', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.41e-05', EG='1.34', time_epoch_completed='1630966207.73', return_code='0', job_id='103159', GAL2='0.75', EG2='1.31', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.51e-08', ts2='3.44', photon_index='2.59' WHERE bin_id='650' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 103159: <4FGL_J1301.6+3336_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin650 195.418 33.6097 407808001 408067201 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 :                                   743.12 sec.
    Max Memory :                                 1144 MB
    Average Memory :                             299.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

