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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin90
RA = 195.418, Dec = 33.6097
tmin = 262656001, tmax = 262915201
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='101062', job_status='RUN', time_executed='2021-09-06 14:54:19.890207', time_epoch_executed='1630965259.89' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101062/ft1_4FGL_J1301.6+3336_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101062/ft2_4FGL_J1301.6+3336_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101062/ft1_4FGL_J1301.6+3336_daily_bin90.fits outfile=/scratch/kocevski/101062/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin90.fits ra=195.418 dec=33.6097 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.42
user 1.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101062/ft1_filtered_4FGL_J1301.6+3336_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/101062/ft2_4FGL_J1301.6+3336_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/101062/ltcube_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.fits outfile=/scratch/kocevski/101062/expmap_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.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/101062/ltcube_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.fits
.....................!
real 191.04
user 185.53
sys 4.85

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/101062/ft1_filtered_4FGL_J1301.6+3336_daily_bin90.fits scfile=/scratch/kocevski/101062/ft2_4FGL_J1301.6+3336_daily_bin90.fits outfile=/scratch/kocevski/101062/cmap_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101062/ft1_filtered_4FGL_J1301.6+3336_daily_bin90.fits scfile=/scratch/kocevski/101062/ft2_4FGL_J1301.6+3336_daily_bin90.fits outfile=/scratch/kocevski/101062/cmap_HighResolution_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0462       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5937       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13351E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.770       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8120       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.001       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.205       1.0000         .10000E-03   10000.    
    20 'norm      '    .23222E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4637       1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.440       1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.964       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14205E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.5932       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1665       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .57733       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=   4684.943     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4136 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.423        .99017E-06** at limit **
   2  norm          4.8482        3.8560       -.28201E-06   -.21621E-03
   3  Prefactor     .10000E-03    12.546       -.10842E-05** at limit **
   4  Prefactor     2.0462        2.4671        .20257E-06    .11910E-03
   5  Prefactor     2.5936        2.2236        .83596E-07    .63290E-04
   6  norm          .10000E-03    1.6016        .31676E-07** at limit **
   7  Prefactor     .10000E-03    2.7169        .27143E-07** at limit **
   8  Prefactor     .10000E-03    10.401       -.19906E-06** at limit **
   9  Prefactor     .10000E-03    16.690        .23114E-05** at limit **
  10  Prefactor     6.8933        7.6859        .10620E-06    .72264E-05
  11  Prefactor     .10000E-03    21.387       -.14421E-04** at limit **
  12  norm          1.8335        3.7007        .42752E-05    .34930E-03
  13  Prefactor     .10001E-03    59.965       -.58576E-05** at limit **
  14  Prefactor     29.767        36.107       -.24798E-05    .19340E-03
  15  norm          6.8123        4.7195        .11559E-06    .10389E-03
  16  Prefactor     .10000E-03    20.349       -.73510E-06** at limit **
  17  norm          12.001        7.0510       -.10588E-06    .10782E-03
  18  norm          .10000E-03    6.7591       -.17219E-07** at limit **
  19  norm          14.218        5.6912       -.76566E-06    .11038E-02
  20  norm          .10026E-03    11.749       -.33629E-05** at limit **
  21  norm          3.6537        18.446        .33839E-06    .33927E-05
  22  Prefactor     .10000E-03    2.6026       -.97717E-07** at limit **
  23  Prefactor     5.4609        15.332       -.21079E-06    .15107E-04
  24  Prefactor     46.432        72.231        .25725E-05    .98008E-04
  25  Prefactor     38.952        23.520        .83896E-07    .51931E-04
  26  Prefactor     .10000E-03    20.663       -.76912E-06** at limit **
  27  Prefactor     .10000E-03    27.904       -.24773E-05** at limit **
  28  Prefactor     5.5938        4.1950       -.47021E-06   -.55846E-03
  29  Normalizat    1.1664        .19902        .10753E-05    .41400E-03
  30  Prefactor     .57759        .23425       -.25681E-05    .13959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.84817
  Prefactor  = 0.0001
  Prefactor  = 2.04619
  Prefactor  = 2.59365
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.89333
  Prefactor  = 0.000100005
  norm       = 1.83353
  Prefactor  = 0.00010001
  Prefactor  = 29.7669
  norm       = 6.81227
  Prefactor  = 0.0001
  norm       = 12.0012
  norm       = 0.0001
  norm       = 14.2184
  norm       = 0.000100258
  norm       = 3.65372
  Prefactor  = 0.0001
  Prefactor  = 5.46088
  Prefactor  = 46.4316
  Prefactor  = 38.9517
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.59377
  Normalizat = 1.16636
  Prefactor  = 0.577594
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.943     FROM HESSE     STATUS=OK           594 CALLS     4730 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8482        3.8703        .10302E-03   -1.5268    
   3  Prefactor     .10000E-03    12.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0462        2.4617        .10340E-03   -1.5422    
   5  Prefactor     2.5936        2.2105        .88525E-04   -1.5386    
   6  norm          .10000E-03    1.6153        .84590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7200        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8933        7.6828        .15280E-03   -1.5183    
  11  Prefactor     .10000E-03    35.819        .29274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8335        4.9816        .10801E-02   -1.5437    
  13  Prefactor     .10001E-03    60.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.767        37.799        .73431E-04   -1.4616    
  15  norm          6.8123        4.7139        .11768E-03   -1.5186    
  16  Prefactor     .10000E-03    20.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.001        7.0365        .11564E-03   -1.5015    
  18  norm          .10000E-03    6.7649        .17380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.218        7.3797        .92061E-04   -1.4954    
  20  norm          .10026E-03    15.324        .55215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6537        18.394        .21123E-03   -1.5326    
  22  Prefactor     .10000E-03    2.6337        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4609        15.281        .17190E-03   -1.5241    
  24  Prefactor     46.432        72.106        .58837E-04   -1.4344    
  25  Prefactor     38.952        23.540        .64212E-04   -1.4459    
  26  Prefactor     .10000E-03    20.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    27.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.5938        4.2048        .11763E-03   -1.5235    
  29  Normalizat    1.1664        .22921        .21070E-03   -.87649    
  30  Prefactor     .57759        .26641        .34684E-03   -1.0854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32813e-09
Minuit parameter uncertainties:
  1  0.0001345
  2  3.8705
  3  2.59695e-05
  4  2.46178
  5  2.21058
  6  3.05154e-06
  7  3.21027e-06
  8  1.30725e-05
  9  0.00034174
  10  7.68389
  11  0.000827341
  12  4.98272
  13  0.00154539
  14  37.8296
  15  4.71411
  16  7.56672e-05
  17  7.03702
  18  5.38107e-06
  19  7.38019
  20  0.00397486
  21  16.4037
  22  4.24869e-05
  23  15.2924
  24  72.2424
  25  23.5456
  26  6.13876e-05
  27  0.000479076
  28  4.20506
  29  0.229407
  30  0.266996
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.977e+01  3.783e+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:  5.776e-01  2.670e-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.166e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 5.86e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/101062/likelihoodResults_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.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) = 4684.75282276
delta logL = 0.189925246195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4684.74470935
delta logL = 0.198038654831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.165       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1721       1.0000          .0000       10.000    
     3 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59665       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=   4684.745     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.166        38.239        .99617E-04    .11663E-03
   2  Index         3.1722        1.3542        .61331E-02    .58007E-04
   3  Normalizat    1.1451        .22407        .21225E-03    .23357E-03
   4  Prefactor     .59624        .26386        .34183E-03    .10100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1665
  Index      = 3.17225
  Normalizat = 1.14514
  Prefactor  = 0.596236
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.745     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.166        29.059        .39847E-05   -1.4904    
   2  Index         3.1722        1.0337        .24532E-03   -.37422    
   3  Normalizat    1.1451        .22414        .42451E-04   -.88316    
   4  Prefactor     .59624        .26367        .13673E-04   -1.0774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06044e-11
Minuit parameter uncertainties:
  1  29.0843
  2  1.04239
  3  0.224323
  4  0.26422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101062': 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) = 4684.74470793
delta logL = 0.198040078445

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.617e+01  2.908e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.172e+00  1.042e+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:  5.962e-01  2.642e-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.145e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 195.418 33.610
Photon Index (Free Index): 3.17 +/- 1.04
Photon Flux (Free Index): 6.29e-08 +/- 5.84e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.09e-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/101062/cmap_HighResolution_262656001_262915201_4FGL_J1301.6+3336_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.16e-05', photon_flux_error='5.86e-08', dlogl='1.98e-01', energy_flux='1.22e-05', photon_flux2='6.29e-08', job_status='DONE', time_completed='2021-09-06 15:06:53.430707', photon_index_error2='1.04', photon_index2='3.17', ts='1.06', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.09e-05', EG='1.17', time_epoch_completed='1630966013.43', return_code='0', job_id='101062', GAL2='0.60', EG2='1.15', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.84e-08', ts2='1.52', photon_index='2.59' WHERE bin_id='90' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:06:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 101062: <4FGL_J1301.6+3336_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin90 195.418 33.6097 262656001 262915201 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 :                                   729.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             232.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

