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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin502
RA = 195.418, Dec = 33.6097
tmin = 369446401, tmax = 369705601
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='102954', job_status='RUN', time_executed='2021-09-06 14:56:02.725655', time_epoch_executed='1630965362.73' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102954/ft1_4FGL_J1301.6+3336_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102954/ft2_4FGL_J1301.6+3336_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102954/ft1_4FGL_J1301.6+3336_daily_bin502.fits outfile=/scratch/kocevski/102954/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin502.fits ra=195.418 dec=33.6097 rad=12.0 tmin=369446401.0 tmax=369705601.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.42
user 3.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102954/ft2_4FGL_J1301.6+3336_daily_bin502.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/102954/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin502.fits evtable="EVENTS" outfile="/scratch/kocevski/102954/ft1_filtered_4FGL_J1301.6+3336_daily_bin502.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102954/ft1_filtered_4FGL_J1301.6+3336_daily_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/102954/ft2_4FGL_J1301.6+3336_daily_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/102954/ltcube_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.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/102954/ft2_4FGL_J1301.6+3336_daily_bin502.fits
.....................!
real 11.79
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102954/ft1_filtered_4FGL_J1301.6+3336_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/102954/ft2_4FGL_J1301.6+3336_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/102954/ltcube_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.fits outfile=/scratch/kocevski/102954/expmap_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.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/102954/ltcube_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.fits
.....................!
real 190.60
user 185.81
sys 4.35

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/102954/ft1_filtered_4FGL_J1301.6+3336_daily_bin502.fits scfile=/scratch/kocevski/102954/ft2_4FGL_J1301.6+3336_daily_bin502.fits outfile=/scratch/kocevski/102954/cmap_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102954/ft1_filtered_4FGL_J1301.6+3336_daily_bin502.fits scfile=/scratch/kocevski/102954/ft2_4FGL_J1301.6+3336_daily_bin502.fits outfile=/scratch/kocevski/102954/cmap_HighResolution_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.418 yref=33.6097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8719       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.749       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0310       1.0000         .10000E-03   10000.    
    19 'norm      '    .10995E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .62652       1.0000         .10000E-03   10000.    
    21 'norm      '    23.464       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67845       1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.184       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    118.26       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88613       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1111       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=   5935.563     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3862 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.323        .22661E-05** at limit **
   2  norm          6.8719        2.8798        .98791E-08   -.55529E-05
   3  Prefactor     5.8744        5.2628        .32611E-07   -.70951E-05
   4  Prefactor     .10000E-03    .92820       -.57221E-08** at limit **
   5  Prefactor     .10000E-03    1.0226       -.47103E-08** at limit **
   6  norm          .10000E-03    1.7459       -.97170E-07** at limit **
   7  Prefactor     .10000E-03    3.3469        .18410E-07** at limit **
   8  Prefactor     14.994        13.808       -.70803E-08   -.14565E-05
   9  Prefactor     .10000E-03    17.731       -.55859E-06** at limit **
  10  Prefactor     .10000E-03    5.1456       -.77957E-06** at limit **
  11  Prefactor     10.749        6.0235        .38522E-07   -.24585E-04
  12  norm          2.9530        2.7707       -.10051E-06   -.95139E-04
  13  Prefactor     .10000E-03    24.741       -.22538E-05** at limit **
  14  Prefactor     .10000E-03    8.1371        .14246E-05** at limit **
  15  norm          2.3451        2.5957       -.16420E-07   -.74448E-04
  16  Prefactor     .10000E-03    18.151        .69890E-06** at limit **
  17  norm          .10000E-03    1.6511       -.25859E-07** at limit **
  18  norm          7.0292        12.360       -.57479E-07   -.12823E-04
  19  norm          .10000E-03    2.2957       -.80743E-06** at limit **
  20  norm          .63292        4.1165        .16812E-05   -.35445E-03
  21  norm          23.463        18.824       -.92171E-07   -.40698E-05
  22  Prefactor     .10000E-03    1.7911        .34700E-07** at limit **
  23  Prefactor     .67007        10.170        .33998E-06   -.98303E-04
  24  Prefactor     37.181        49.524       -.22929E-05   -.43378E-04
  25  Prefactor     .10000E-03    6.1863        .44144E-07** at limit **
  26  Prefactor     .10000E-03    8.9631       -.14842E-05** at limit **
  27  Prefactor     118.26        73.947        .40947E-05    .85451E-04
  28  Prefactor     .10000E-03    1.6658        .62382E-07** at limit **
  29  Normalizat    .88593        .15991       -.43034E-06    .61024E-04
  30  Prefactor     1.1114        .19993        .37689E-06   -.72626E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.87193
  Prefactor  = 5.8744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7487
  norm       = 2.95296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34506
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.02925
  norm       = 0.0001
  norm       = 0.632925
  norm       = 23.4635
  Prefactor  = 0.0001
  Prefactor  = 0.670067
  Prefactor  = 37.1807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.265
  Prefactor  = 0.0001
  Normalizat = 0.885933
  Prefactor  = 1.11137
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.563     FROM HESSE     STATUS=OK           582 CALLS     4444 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8719        2.8684        .81788E-04   -1.5184    
   3  Prefactor     5.8744        5.2620        .16242E-03   -1.5223    
   4  Prefactor     .10000E-03    .93358        .72248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0692        .15196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7891        .99403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3561        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.994        13.808        .10343E-03   -1.4933    
   9  Prefactor     .10000E-03    17.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2846        .34134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.749        6.0201        .12220E-03   -1.5052    
  12  norm          2.9530        2.7630        .12051E-03   -1.5364    
  13  Prefactor     .10000E-03    24.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3451        2.5848        .12660E-03   -1.5402    
  16  Prefactor     .10000E-03    18.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6580        .96653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0292        12.372        .15129E-03   -1.5178    
  19  norm          .10000E-03    5.0414        .21440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .63292        6.4873        .36736E-03   -1.5549    
  21  norm          23.463        18.824        .82694E-04   -1.4739    
  22  Prefactor     .10000E-03    1.8432        .20064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .67007        36.677        .43811E-02   -1.5544    
  24  Prefactor     37.181        49.275        .65725E-04   -1.4488    
  25  Prefactor     .10000E-03    6.2010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.0187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     118.26        74.926        .37003E-04   -1.3529    
  28  Prefactor     .10000E-03    1.6797        .97082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88593        .19033        .22917E-03   -.96956    
  30  Prefactor     1.1114        .23990        .26441E-03   -.89104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70587e-08
Minuit parameter uncertainties:
  1  0.000107533
  2  2.86842
  3  5.26244
  4  1.0881e-07
  5  1.71317e-08
  6  6.192e-07
  7  8.49856e-07
  8  13.8113
  9  2.22859e-05
  10  1.21703e-05
  11  6.02044
  12  2.76312
  13  0.000113347
  14  4.4726e-05
  15  2.58497
  16  2.54798e-05
  17  1.2715e-07
  18  12.3767
  19  3.87895e-05
  20  4.0529
  21  18.8285
  22  4.85271e-06
  23  9.92048
  24  49.3289
  25  2.88133e-06
  26  4.38288e-05
  27  74.9859
  28  8.6599e-07
  29  0.190475
  30  0.24013
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.473e-05  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.111e+00  2.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.859e-01  1.905e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102954/likelihoodResults_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.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) = 5935.56369306
delta logL = -0.000580646904382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5935.56311291
delta logL = -4.96773282066e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5690       1.0000          .0000       10.000    
     3 'Normalizat'    .88585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1115       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=   5935.563     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      255 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.591        .18142E-01** at limit **
   2  Index         1.9563        5.5100        .50000        .39288E-06
   3  Normalizat    .88593        .61617E-02    .22918E-03   -.67075E-03
   4  Prefactor     1.1114        .79056E-02    .26441E-03   -.57907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95635
  Normalizat = 0.885931
  Prefactor  = 1.11137
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.563     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.37        .25603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9563        7.1387        .50000       -.65446    
   3  Normalizat    .88593        .17421E-01    .45835E-04   -.96956    
   4  Prefactor     1.1114        .22351E-01    .52881E-04   -.89104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95807e-09
Minuit parameter uncertainties:
  1  0.000290283
  2  758.596
  3  0.017421
  4  0.0223515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102954': 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) = 5935.56311063
delta logL = 1.79148173629e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.903e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.956e+00  7.586e+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:  1.111e+00  2.235e-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:  8.859e-01  1.742e-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/102954/cmap_HighResolution_369446401_369705601_4FGL_J1301.6+3336_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-06 15:09:41.685429', job_id='102954', GAL2='1.11', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630966181.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='502' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:09:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 102954: <4FGL_J1301.6+3336_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin502 195.418 33.6097 369446401 369705601 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 :                                   810.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

