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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1118
RA = 195.418, Dec = 33.6097
tmin = 529113601, tmax = 529372801
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='106866', job_status='RUN', time_executed='2021-09-06 15:06:57.874841', time_epoch_executed='1630966017.87' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106866/ft1_4FGL_J1301.6+3336_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106866/ft1_4FGL_J1301.6+3336_daily_bin1118.fits outfile=/scratch/kocevski/106866/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1118.fits ra=195.418 dec=33.6097 rad=12.0 tmin=529113601.0 tmax=529372801.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.89
user 3.64
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.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/106866/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1118.fits evtable="EVENTS" outfile="/scratch/kocevski/106866/ft1_filtered_4FGL_J1301.6+3336_daily_bin1118.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106866/ft1_filtered_4FGL_J1301.6+3336_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/106866/ltcube_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.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/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.fits
.....................!
real 11.75
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106866/ft1_filtered_4FGL_J1301.6+3336_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/106866/ltcube_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.fits outfile=/scratch/kocevski/106866/expmap_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.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/106866/ltcube_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.fits
.....................!
real 189.36
user 184.54
sys 4.23

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/106866/ft1_filtered_4FGL_J1301.6+3336_daily_bin1118.fits scfile=/scratch/kocevski/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.fits outfile=/scratch/kocevski/106866/cmap_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106866/ft1_filtered_4FGL_J1301.6+3336_daily_bin1118.fits scfile=/scratch/kocevski/106866/ft2_4FGL_J1301.6+3336_daily_bin1118.fits outfile=/scratch/kocevski/106866/cmap_HighResolution_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.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.60
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.889       1.0000         .10000E-03   10000.    
     2 'norm      '    11.787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7990       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0952       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.033       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .29632E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.542       1.0000         .10000E-03   10000.    
    15 'norm      '    7.3870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8353       1.0000         .10000E-03   10000.    
    18 'norm      '    17.193       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    31.616       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .64222       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0165       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77185       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=   4598.459     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3880 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.884        51.160        .76058E-06    .28099E-04
   2  norm          11.787        4.1902       -.12606E-07    .65323E-04
   3  Prefactor     6.1590        7.6322       -.73289E-07    .49846E-04
   4  Prefactor     .10000E-03    1.2722       -.49966E-07** at limit **
   5  Prefactor     1.7990        2.1340       -.32061E-07    .49857E-04
   6  norm          5.0952        4.2265       -.12009E-07    .42051E-04
   7  Prefactor     .10000E-03    3.3883       -.64488E-07** at limit **
   8  Prefactor     .10000E-03    27.524       -.48872E-06** at limit **
   9  Prefactor     54.029        88.591        .50071E-05   -.15590E-04
  10  Prefactor     .10000E-03    3.5713       -.40776E-07** at limit **
  11  Prefactor     .10000E-03    1.7946       -.12134E-07** at limit **
  12  norm          .10000E-03    13.031        .71000E-05** at limit **
  13  Prefactor     26.350        57.533        .18433E-05    .23080E-04
  14  Prefactor     33.564        29.111        .44656E-07   -.10147E-03
  15  norm          7.3869        4.7766       -.16038E-07    .57583E-04
  16  Prefactor     .10000E-03    4.6294       -.33566E-07** at limit **
  17  norm          2.8341        5.1818        .57912E-06    .44506E-03
  18  norm          17.193        14.570       -.14009E-06    .11630E-05
  19  norm          .10000E-03    1.6321        .20233E-06** at limit **
  20  norm          .10000E-03    2.2867        .11557E-06** at limit **
  21  norm          31.612        22.664        .25342E-06    .24374E-04
  22  Prefactor     .64172        3.3273        .84936E-07    .35420E-03
  23  Prefactor     .10000E-03    19.657        .11330E-05** at limit **
  24  Prefactor     .10000E-03    17.247        .15097E-06** at limit **
  25  Prefactor     .10000E-03    20.792       -.23758E-06** at limit **
  26  Prefactor     .10000E-03    7.1364       -.14163E-08** at limit **
  27  Prefactor     .10000E-03    28.866       -.19192E-06** at limit **
  28  Prefactor     .10000E-03    2.3286       -.12204E-06** at limit **
  29  Normalizat    1.0167        .18115       -.96455E-06    .76887E-04
  30  Prefactor     .77161        .22017        .22394E-05    .22319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.8835
  norm       = 11.7874
  Prefactor  = 6.15898
  Prefactor  = 0.0001
  Prefactor  = 1.799
  norm       = 5.09517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 26.3498
  Prefactor  = 33.564
  norm       = 7.38693
  Prefactor  = 0.0001
  norm       = 2.83409
  norm       = 17.1929
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.6123
  Prefactor  = 0.641718
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0167
  Prefactor  = 0.771611
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.459     FROM HESSE     STATUS=OK           580 CALLS     4460 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.884        51.143        .57351E-04   -1.4308    
   2  norm          11.787        4.1712        .78249E-04   -1.5021    
   3  Prefactor     6.1590        7.6218        .16177E-03   -1.5212    
   4  Prefactor     .10000E-03    1.2831        .74529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7990        2.1158        .10208E-03   -1.5440    
   6  norm          5.0952        4.2227        .12304E-03   -1.5256    
   7  Prefactor     .10000E-03    3.3957        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.029        87.332        .54567E-04   -1.4237    
  10  Prefactor     .10000E-03    3.5793        .12515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7958        .88718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.293        .23169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.350        57.621        .78029E-04   -1.4681    
  14  Prefactor     33.564        29.406        .69190E-04   -1.4549    
  15  norm          7.3869        4.7755        .11444E-03   -1.5164    
  16  Prefactor     .10000E-03    4.6323        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8341        5.1097        .19074E-03   -1.5371    
  18  norm          17.193        14.569        .96592E-04   -1.4878    
  19  norm          .10000E-03    1.6479        .84574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2916        .10015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          31.612        22.661        .71261E-04   -1.4583    
  22  Prefactor     .64172        3.2456        .22171E-03   -1.5548    
  23  Prefactor     .10000E-03    20.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.1438        .17693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    28.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.3681        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0167        .21356        .21258E-03   -.92473    
  30  Prefactor     .77161        .26011        .30035E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08101e-10
Minuit parameter uncertainties:
  1  51.1885
  2  4.17129
  3  7.62295
  4  4.74366e-06
  5  2.11591
  6  4.22291
  7  7.49779e-06
  8  6.37384e-05
  9  87.5404
  10  8.36532e-06
  11  2.42907e-07
  12  0.000231152
  13  57.7427
  14  29.419
  15  4.77571
  16  1.83255e-06
  17  5.11047
  18  14.5723
  19  2.10934e-05
  20  1.35905e-05
  21  22.6667
  22  2.88637
  23  0.000255636
  24  1.74211e-05
  25  9.47722e-05
  26  9.97686e-06
  27  4.3453e-05
  28  1.37724e-05
  29  0.213745
  30  0.260526
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.356e+01  2.942e+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.716e-01  2.605e-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.017e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/106866/likelihoodResults_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.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) = 4598.4573478
delta logL = 0.00134688487924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4598.45600796
delta logL = 0.00268672574657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.438       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5325       1.0000          .0000       10.000    
     3 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76862       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=   4598.456     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.438        41.223        .67319E-04   -.30398E-04
   2  Index         2.5324        .86216        .76092E-02    .25294E-03
   3  Normalizat    1.0199        .21374        .21228E-03    .21851E-04
   4  Prefactor     .76853        .26192        .30088E-03    .21462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4384
  Index      = 2.53244
  Normalizat = 1.01991
  Prefactor  = 0.768534
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.456     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.438        39.186        .26928E-05   -1.4517    
   2  Index         2.5324        .81883        .15218E-02   -.51612    
   3  Normalizat    1.0199        .21351        .84912E-05   -.92366    
   4  Prefactor     .76853        .26170        .12035E-04   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86039e-12
Minuit parameter uncertainties:
  1  39.2148
  2  0.823744
  3  0.213693
  4  0.262128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106866': 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) = 4598.45600791
delta logL = 0.00268677865188

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.544e+01  3.921e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.532e+00  8.237e-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.685e-01  2.621e-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.020e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.53 +/- 0.82
Photon Flux (Free Index): 5.02e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.30e-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/106866/cmap_HighResolution_529113601_529372801_4FGL_J1301.6+3336_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='1.41e-05', photon_flux_error='4.56e-08', dlogl='2.69e-03', energy_flux='1.37e-05', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-09-06 15:19:28.328475', photon_index_error2='0.82', photon_index2='2.53', ts='1.98', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.30e-05', EG='1.02', time_epoch_completed='1630966768.33', return_code='0', job_id='106866', GAL2='0.77', EG2='1.02', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.96e-08', ts2='1.97', photon_index='2.59' WHERE bin_id='1118' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:19:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 106866: <4FGL_J1301.6+3336_daily_bin1118> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1118> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:07 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 15:06:09 2021
Terminated at Mon Sep  6 15:19:30 2021
Results reported at Mon Sep  6 15:19:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1118 195.418 33.6097 529113601 529372801 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

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

