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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin148
RA = 195.418, Dec = 33.6097
tmin = 277689601, tmax = 277948801
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='101153', job_status='RUN', time_executed='2021-09-06 14:50:49.746688', time_epoch_executed='1630965049.75' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101153/ft1_4FGL_J1301.6+3336_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101153/ft2_4FGL_J1301.6+3336_daily_bin148.fits


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

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

Done.
real 3.58
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101153/ft1_filtered_4FGL_J1301.6+3336_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/101153/ft2_4FGL_J1301.6+3336_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/101153/ltcube_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.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/101153/ft2_4FGL_J1301.6+3336_daily_bin148.fits
.....................!
real 12.71
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101153/ft1_filtered_4FGL_J1301.6+3336_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/101153/ft2_4FGL_J1301.6+3336_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/101153/ltcube_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.fits outfile=/scratch/kocevski/101153/expmap_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.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/101153/ltcube_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.fits
.....................!
real 190.96
user 184.41
sys 6.12

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/101153/ft1_filtered_4FGL_J1301.6+3336_daily_bin148.fits scfile=/scratch/kocevski/101153/ft2_4FGL_J1301.6+3336_daily_bin148.fits outfile=/scratch/kocevski/101153/cmap_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101153/ft1_filtered_4FGL_J1301.6+3336_daily_bin148.fits scfile=/scratch/kocevski/101153/ft2_4FGL_J1301.6+3336_daily_bin148.fits outfile=/scratch/kocevski/101153/cmap_HighResolution_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9704       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4165       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99132       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2759       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8800       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0456       1.0000         .10000E-03   10000.    
    12 'norm      '    .39168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.466       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9847       1.0000         .10000E-03   10000.    
    15 'norm      '    10.694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15242E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8237       1.0000         .10000E-03   10000.    
    20 'norm      '    .29152E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16110E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8047       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0814       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .64014       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5000       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=   6026.035     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3989 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9427        39.687       -.60420E-06    .45371E-04
   2  norm          3.4155        2.8150       -.80688E-07    .98564E-04
   3  Prefactor     3.8120        8.2415       -.20633E-05    .26736E-03
   4  Prefactor     .91514        2.0980        .22603E-06    .75396E-03
   5  Prefactor     .99192        1.8868        .14460E-06    .63936E-03
   6  norm          4.2761        3.3666       -.36015E-07   -.12366E-03
   7  Prefactor     11.681        8.7597       -.16088E-06   -.52920E-04
   8  Prefactor     .10000E-03    8.2808       -.14847E-06** at limit **
   9  Prefactor     .10000E-03    54.878        .36448E-06** at limit **
  10  Prefactor     1.8809        5.4663       -.31642E-06    .27968E-04
  11  Prefactor     3.0448        5.8462        .21742E-07    .55354E-03
  12  norm          .39132        2.7198        .61090E-06    .13263E-03
  13  Prefactor     68.475        52.261       -.89937E-07   -.25477E-05
  14  Prefactor     6.9916        19.800       -.11508E-06    .46376E-04
  15  norm          10.695        4.2719       -.69212E-07    .15372E-03
  16  Prefactor     .10000E-03    46.794       -.15409E-04** at limit **
  17  norm          .10000E-03    2.3414       -.11712E-06** at limit **
  18  norm          .10000E-03    4.4820       -.20107E-06** at limit **
  19  norm          5.8242        4.0782       -.44760E-06   -.16814E-02
  20  norm          .10000E-03    6.1192        .93895E-06** at limit **
  21  norm          .10000E-03    6.5442        .44531E-07** at limit **
  22  Prefactor     .10000E-03    1.1140       -.26047E-07** at limit **
  23  Prefactor     .10003E-03    15.554        .62861E-05** at limit **
  24  Prefactor     .10000E-03    17.319       -.39001E-07** at limit **
  25  Prefactor     .10000E-03    7.8202        .37440E-08** at limit **
  26  Prefactor     4.8054        16.309       -.10712E-06    .26638E-04
  27  Prefactor     .10000E-03    88.720       -.11014E-05** at limit **
  28  Prefactor     1.0821        3.9556       -.62520E-06   -.88058E-05
  29  Normalizat    .64002        .16797        .41712E-06    .34243E-03
  30  Prefactor     1.4999        .21184        .86231E-06    .41369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.94274
  norm       = 3.41551
  Prefactor  = 3.81202
  Prefactor  = 0.91514
  Prefactor  = 0.991916
  norm       = 4.27614
  Prefactor  = 11.681
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.88092
  Prefactor  = 3.04476
  norm       = 0.391319
  Prefactor  = 68.4746
  Prefactor  = 6.99156
  norm       = 10.6949
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.82419
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.80542
  Prefactor  = 0.0001
  Prefactor  = 1.08208
  Normalizat = 0.640025
  Prefactor  = 1.49993
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.035     FROM HESSE     STATUS=OK           600 CALLS     4589 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9427        39.688        .14202E-03   -1.5144    
   2  norm          3.4155        2.6860        .10026E-03   -1.5338    
   3  Prefactor     3.8120        8.2341        .10337E-02   -1.5317    
   4  Prefactor     .91514        1.6930        .14363E-02   -1.5517    
   5  Prefactor     .99192        1.6918        .13650E-02   -1.5509    
   6  norm          4.2761        3.3626        .12266E-03   -1.5294    
   7  Prefactor     11.681        8.7234        .11721E-03   -1.5024    
   8  Prefactor     .10000E-03    8.2897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    54.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8809        5.4449        .29989E-03   -1.5434    
  11  Prefactor     3.0448        5.5421        .23249E-03   -1.5359    
  12  norm          .39132        9.4313        .22215E-02   -1.5583    
  13  Prefactor     68.475        52.236        .48509E-04   -1.4051    
  14  Prefactor     6.9916        19.813        .15180E-03   -1.5179    
  15  norm          10.695        4.2695        .98133E-04   -1.5054    
  16  Prefactor     .10000E-03    49.866        .42213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3668        .11584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4879        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8242        3.5559        .10770E-03   -1.5225    
  20  norm          .10000E-03    11.117        .32342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.5484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1290        .79837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    76.160        .42434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.8588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.8054        16.282        .18354E-03   -1.5270    
  27  Prefactor     .10000E-03    88.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0821        3.9590        .28067E-03   -1.5500    
  29  Normalizat    .64002        .19761        .27446E-03   -1.0631    
  30  Prefactor     1.4999        .25401        .24576E-03   -.77542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24732e-09
Minuit parameter uncertainties:
  1  35.5469
  2  2.68606
  3  8.23651
  4  1.69306
  5  1.6919
  6  3.36276
  7  8.7243
  8  2.55272e-05
  9  0.000337522
  10  5.44633
  11  5.54299
  12  3.8424
  13  52.2706
  14  19.8321
  15  4.26966
  16  0.000389658
  17  6.70724e-06
  18  2.868e-05
  19  3.55604
  20  0.000175076
  21  3.29854e-06
  22  3.11468e-06
  23  0.00309436
  24  1.69272e-05
  25  7.58591e-07
  26  16.2966
  27  0.000402129
  28  3.95998
  29  0.197828
  30  0.254223
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  6.992e+00  1.983e+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.500e+00  2.542e-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:  6.400e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101153/likelihoodResults_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.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) = 6026.01301993
delta logL = 0.0221283667051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6025.98873631
delta logL = 0.046411988782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.231       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1307       1.0000          .0000       10.000    
     3 'Normalizat'    .64360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4941       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=   6025.989     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      276 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.242        31.757        .11012E-03   -.10222E-02
   2  Index         2.1315        1.3089        .14818E-01   -.40444E-03
   3  Normalizat    .64377        .19238        .27369E-03    .11027E-02
   4  Prefactor     1.4938        .25335        .24616E-03    .14662E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2419
  Index      = 2.13152
  Normalizat = 0.643765
  Prefactor  = 1.49384
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.989     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.242        30.359        .22024E-04   -1.4980    
   2  Index         2.1315        1.2540        .59273E-03   -.61101    
   3  Normalizat    .64377        .19248        .54738E-04   -1.0616    
   4  Prefactor     1.4938        .25340        .49231E-04   -.77712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85846e-08
Minuit parameter uncertainties:
  1  30.3948
  2  1.2745
  3  0.192678
  4  0.253613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101153': 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) = 6025.98873521
delta logL = 0.0464130854452

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.324e+01  3.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.132e+00  1.275e+00  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.494e+00  2.536e-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:  6.438e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/101153/cmap_HighResolution_277689601_277948801_4FGL_J1301.6+3336_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-06 15:04:45.849522', job_id='101153', GAL2='1.49', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630965885.85', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.50', dlogl='4.64e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='148' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 101153: <4FGL_J1301.6+3336_daily_bin148> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin148> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 14:50:30 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:50:32 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:50:32 2021
Terminated at Mon Sep  6 15:04:46 2021
Results reported at Mon Sep  6 15:04:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin148 195.418 33.6097 277689601 277948801 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 :                                   832.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

