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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1115
RA = 195.418, Dec = 33.6097
tmin = 528336001, tmax = 528595201
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='106860', job_status='RUN', time_executed='2021-09-06 15:06:39.943796', time_epoch_executed='1630965999.94' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106860/ft1_4FGL_J1301.6+3336_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106860/ft2_4FGL_J1301.6+3336_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106860/ft1_4FGL_J1301.6+3336_daily_bin1115.fits outfile=/scratch/kocevski/106860/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1115.fits ra=195.418 dec=33.6097 rad=12.0 tmin=528336001.0 tmax=528595201.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.47
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106860/ft1_filtered_4FGL_J1301.6+3336_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/106860/ft2_4FGL_J1301.6+3336_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/106860/ltcube_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.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/106860/ft2_4FGL_J1301.6+3336_daily_bin1115.fits
.....................!
real 11.70
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106860/ft1_filtered_4FGL_J1301.6+3336_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/106860/ft2_4FGL_J1301.6+3336_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/106860/ltcube_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.fits outfile=/scratch/kocevski/106860/expmap_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.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/106860/ltcube_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.fits
.....................!
real 189.91
user 185.12
sys 3.91

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/106860/ft1_filtered_4FGL_J1301.6+3336_daily_bin1115.fits scfile=/scratch/kocevski/106860/ft2_4FGL_J1301.6+3336_daily_bin1115.fits outfile=/scratch/kocevski/106860/cmap_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.02       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6746       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64101E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9054       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9241       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76738       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3553       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2162       1.0000         .10000E-03   10000.    
    20 'norm      '    .11358       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .80055       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.311       1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.411       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16100E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96641       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90743       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=   5192.975     FROM MIGRAD    STATUS=CONVERGED   1431 CALLS     4656 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.03        60.963        .39239E-04   -.15935E-04
   2  norm          8.3408        3.3491        .80807E-04    .10003E-03
   3  Prefactor     7.9878        7.0684        .14189E-03    .24118E-04
   4  Prefactor     .10000E-03    1.4665        .16742E-03** at limit **
   5  Prefactor     1.6737        1.5997        .85643E-04    .10673E-03
   6  norm          .10000E-03    5.3550        .31849E-03** at limit **
   7  Prefactor     .10000E-03    49.777        .38803E-02** at limit **
   8  Prefactor     .10000E-03    6.0055        .17246E-02** at limit **
   9  Prefactor     34.417        49.760        .68293E-04    .28333E-04
  10  Prefactor     8.2391        8.6226        .69830E-03   -.74402E-04
  11  Prefactor     3.9067        5.0393        .17764E-03    .83644E-04
  12  norm          2.9235        2.8961        .11772E-03   -.57943E-05
  13  Prefactor     .10000E-03    25.034        .18142E-02** at limit **
  14  Prefactor     .10000E-03    23.494        .18142E-02** at limit **
  15  norm          .76826        1.9083        .17912E-02    .67376E-03
  16  Prefactor     .10000E-03    9.7373        .18142E-02** at limit **
  17  norm          4.3568        4.6289        .15358E-03    .14857E-03
  18  norm          .10000E-03    4.5005        .14924E-02** at limit **
  19  norm          3.2407        4.3405        .68306E-03   -.92289E-04
  20  norm          .57369E-01    7.4327        .51286E-01    .28635E-03
  21  norm          .10000E-03    10.320        .18142E-02** at limit **
  22  Prefactor     .79973        1.5460        .14771E-02    .29819E-02
  23  Prefactor     .10000E-03    15.927        .18142E-02** at limit **
  24  Prefactor     .10000E-03    19.109        .18142E-02** at limit **
  25  Prefactor     27.312        17.166        .76658E-04    .34258E-04
  26  Prefactor     22.412        16.861        .84610E-04    .25529E-05
  27  Prefactor     .10000E-03    186.80        .18142E-02** at limit **
  28  Prefactor     .10000E-03    4.9081        .21268E-02** at limit **
  29  Normalizat    .96580        .20239        .22364E-03   -.93026E-04
  30  Prefactor     .90799        .24752        .28543E-03   -.12339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.029
  norm       = 8.34078
  Prefactor  = 7.98777
  Prefactor  = 0.0001
  Prefactor  = 1.67374
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4172
  Prefactor  = 8.23914
  Prefactor  = 3.90672
  norm       = 2.9235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.768257
  Prefactor  = 0.0001
  norm       = 4.35678
  norm       = 0.0001
  norm       = 3.24067
  norm       = 0.057369
  norm       = 0.0001
  Prefactor  = 0.799733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3118
  Prefactor  = 22.4123
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.965803
  Prefactor  = 0.907988
 **********
 **   18 **HESSE 
 **********

 FCN=   5192.975     FROM HESSE     STATUS=OK           572 CALLS     5228 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.03        60.960        .78478E-05   -1.3655    
   2  norm          8.3408        3.3489        .32323E-05   -1.5130    
   3  Prefactor     7.9878        7.0682        .56755E-05   -1.5143    
   4  Prefactor     .10000E-03    1.4665        .33485E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6737        1.5994        .34257E-05   -1.5449    
   6  norm          .10000E-03    5.3553        .63697E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.436        .77606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0056        .34492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.417        49.759        .13659E-04   -1.4534    
  10  Prefactor     8.2391        8.6222        .27932E-04   -1.5134    
  11  Prefactor     3.9067        5.0392        .71058E-05   -1.5313    
  12  norm          2.9235        2.8959        .47089E-05   -1.5366    
  13  Prefactor     .10000E-03    25.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .76826        1.9061        .71650E-04   -1.5533    
  16  Prefactor     .10000E-03    9.7403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3568        4.6282        .61431E-05   -1.5290    
  18  norm          .10000E-03    4.5007        .29848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2407        4.3384        .27322E-04   -1.5348    
  20  norm          .57369E-01    7.4110        .51406E-01   -1.5660    
  21  norm          .10000E-03    10.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .79973        1.5441        .29542E-03   -1.5529    
  23  Prefactor     .10000E-03    15.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.312        17.166        .30663E-05   -1.4662    
  26  Prefactor     22.412        16.860        .33844E-05   -1.4761    
  27  Prefactor     .10000E-03    186.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.9308        .42537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .96580        .20258        .89458E-05   -.94185    
  30  Prefactor     .90799        .24782        .11417E-04   -.95863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14767e-10
Minuit parameter uncertainties:
  1  60.996
  2  3.349
  3  7.06898
  4  4.21411e-06
  5  1.59945
  6  1.03402e-05
  7  0.000117301
  8  2.03686e-06
  9  49.8194
  10  8.62346
  11  5.03974
  12  2.89605
  13  5.60391e-05
  14  4.5894e-05
  15  1.9062
  16  3.63612e-05
  17  4.62853
  18  4.21929e-07
  19  4.33885
  20  1.30311
  21  7.44632e-06
  22  1.54422
  23  8.12234e-05
  24  9.62244e-05
  25  17.1694
  26  16.8637
  27  0.00165794
  28  6.6316e-05
  29  0.202737
  30  0.248131
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.589e-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:  9.080e-01  2.481e-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:  9.658e-01  2.027e-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: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106860/likelihoodResults_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.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) = 5192.97521283
delta logL = -0.000202800104489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5192.97501054
delta logL = -5.07016011397e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0594       1.0000          .0000       10.000    
     3 'Normalizat'    .96580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90799       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=   5192.975     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      286 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    .34750        .72409E-01** at limit **
   2  Index         2.9994        5.2141        .50000        .84125E-05
   3  Normalizat    .96580        .79096E-03    .22364E-03    .93433E-04
   4  Prefactor     .90799        .98630E-03    .28543E-03    .46919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101472
  Index      = 2.99936
  Normalizat = 0.965802
  Prefactor  = 0.907989
 **********
 **   18 **HESSE 
 **********

 FCN=   5192.975     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      317 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10147E-03    56.577        .43743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9994        5.3162        .50000       -.41166    
   3  Normalizat    .96580        .70149E-02    .89457E-05   -.94185    
   4  Prefactor     .90799        .87473E-02    .11417E-04   -.95862    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.61562e-10
Minuit parameter uncertainties:
  1  0.0182689
  2  258.507
  3  0.00701486
  4  0.00874727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106860': 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) = 5192.97501041
delta logL = -3.81041900255e-07

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.015e-04  1.827e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.999e+00  2.585e+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:  9.080e-01  8.747e-03  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:  9.658e-01  7.015e-03  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/106860/cmap_HighResolution_528336001_528595201_4FGL_J1301.6+3336_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-09-06 15:20:11.250171', job_id='106860', GAL2='0.91', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630966811.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1115' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 106860: <4FGL_J1301.6+3336_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1115> 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) <bullet0105>, 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:20:13 2021
Results reported at Mon Sep  6 15:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1115 195.418 33.6097 528336001 528595201 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 :                                   790.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

