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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin36
RA = 195.418, Dec = 33.6097
tmin = 248659201, tmax = 248918401
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='99715', job_status='RUN', time_executed='2021-09-06 14:49:01.694362', time_epoch_executed='1630964941.69' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99715/ft1_4FGL_J1301.6+3336_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99715/ft2_4FGL_J1301.6+3336_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99715/ft1_4FGL_J1301.6+3336_daily_bin36.fits outfile=/scratch/kocevski/99715/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin36.fits ra=195.418 dec=33.6097 rad=12.0 tmin=248659201.0 tmax=248918401.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.41
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99715/ft1_filtered_4FGL_J1301.6+3336_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/99715/ft2_4FGL_J1301.6+3336_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/99715/ltcube_248659201_248918401_4FGL_J1301.6+3336_daily_bin36.fits outfile=/scratch/kocevski/99715/expmap_248659201_248918401_4FGL_J1301.6+3336_daily_bin36.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/99715/ltcube_248659201_248918401_4FGL_J1301.6+3336_daily_bin36.fits
.....................!
real 192.52
user 187.19
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/99715/ft1_filtered_4FGL_J1301.6+3336_daily_bin36.fits scfile=/scratch/kocevski/99715/ft2_4FGL_J1301.6+3336_daily_bin36.fits outfile=/scratch/kocevski/99715/cmap_248659201_248918401_4FGL_J1301.6+3336_daily_bin36.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.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.893       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5747       1.0000         .10000E-03   10000.    
     6 'norm      '    3.4443       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8771       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .81498E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7322       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2541       1.0000         .10000E-03   10000.    
    18 'norm      '    12.465       1.0000         .10000E-03   10000.    
    19 'norm      '    7.2222       1.0000         .10000E-03   10000.    
    20 'norm      '    .10826E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7655       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0007       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87974       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=   5381.266     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3930 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.948        39.618        .12372E-04   -.67966E-05
   2  norm          2.0133        3.1018        .84587E-07   -.47429E-03
   3  Prefactor     6.5294        6.5180       -.60407E-06   -.12255E-03
   4  Prefactor     3.6784        2.8793       -.34869E-06   -.20035E-02
   5  Prefactor     6.5751        2.8608       -.19753E-06   -.21752E-02
   6  norm          3.4433        3.5244        .61963E-07   -.13716E-03
   7  Prefactor     12.596        10.979        .65663E-07   -.39772E-04
   8  Prefactor     .10000E-03    5.5122        .17873E-07** at limit **
   9  Prefactor     30.297        61.418        .62907E-05   -.23801E-04
  10  Prefactor     6.8757        7.0499       -.47474E-07   -.66564E-04
  11  Prefactor     .10000E-03    1.8855       -.39898E-07** at limit **
  12  norm          .10000E-03    3.6201       -.18149E-06** at limit **
  13  Prefactor     .10000E-03    19.792       -.11232E-04** at limit **
  14  Prefactor     .10001E-03    25.741        .68225E-06** at limit **
  15  norm          8.7326        4.4374       -.20551E-06   -.56935E-04
  16  Prefactor     .10000E-03    22.070        .18286E-04** at limit **
  17  norm          3.2537        4.7379       -.10699E-05   -.79692E-03
  18  norm          12.465        10.846        .29205E-07    .10987E-04
  19  norm          7.2193        5.0115       -.26352E-06   -.18540E-02
  20  norm          .10002E-03    6.7404        .18486E-05** at limit **
  21  norm          .10000E-03    6.6033        .16141E-06** at limit **
  22  Prefactor     .10000E-03    3.5730        .24727E-06** at limit **
  23  Prefactor     .10000E-03    20.217       -.40544E-06** at limit **
  24  Prefactor     .10000E-03    27.083       -.84240E-05** at limit **
  25  Prefactor     3.7633        14.606       -.18287E-05   -.11298E-03
  26  Prefactor     .10000E-03    10.204       -.27283E-06** at limit **
  27  Prefactor     .10000E-03    79.573        .34583E-05** at limit **
  28  Prefactor     4.0002        5.0567        .30984E-05   -.40068E-03
  29  Normalizat    1.0423        .18110       -.13611E-05   -.30502E-03
  30  Prefactor     .87985        .22112       -.31916E-06   -.25089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9484
  norm       = 2.01333
  Prefactor  = 6.5294
  Prefactor  = 3.67835
  Prefactor  = 6.57511
  norm       = 3.44333
  Prefactor  = 12.5958
  Prefactor  = 0.0001
  Prefactor  = 30.2966
  Prefactor  = 6.87572
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 8.73257
  Prefactor  = 0.0001
  norm       = 3.25367
  norm       = 12.4653
  norm       = 7.21926
  norm       = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.00017
  Normalizat = 1.04227
  Prefactor  = 0.879846
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.266     FROM HESSE     STATUS=OK           590 CALLS     4520 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.948        39.538        .89801E-04   -1.4814    
   2  norm          2.0133        3.0800        .13769E-03   -1.5424    
   3  Prefactor     6.5294        6.5153        .15702E-03   -1.5197    
   4  Prefactor     3.6784        2.8995        .47771E-03   -1.5324    
   5  Prefactor     6.5751        2.8696        .38567E-03   -1.5195    
   6  norm          3.4433        3.5184        .13513E-03   -1.5337    
   7  Prefactor     12.596        10.972        .11287E-03   -1.4998    
   8  Prefactor     .10000E-03    5.5139        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.297        61.119        .72798E-04   -1.4607    
  10  Prefactor     6.8757        7.0506        .15299E-03   -1.5183    
  11  Prefactor     .10000E-03    1.8884        .98359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7284        .27183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    255.90        .66945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7326        4.4365        .10610E-03   -1.5117    
  16  Prefactor     .10000E-03    22.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2537        4.7286        .18530E-03   -1.5347    
  18  norm          12.465        10.846        .11346E-03   -1.5002    
  19  norm          7.2193        4.1849        .10740E-03   -1.5171    
  20  norm          .10002E-03    17.342        .31398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.6057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7059        .26954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7633        14.605        .20805E-03   -1.5320    
  26  Prefactor     .10000E-03    10.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    79.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0002        4.9839        .17426E-03   -1.5308    
  29  Normalizat    1.0423        .21182        .22505E-03   -.91628    
  30  Prefactor     .87985        .26069        .30229E-03   -.96849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57543e-09
Minuit parameter uncertainties:
  1  39.5898
  2  3.08023
  3  6.51602
  4  2.89956
  5  2.86969
  6  3.51863
  7  10.9742
  8  1.31752e-06
  9  61.2455
  10  7.05148
  11  9.03086e-07
  12  5.75884e-06
  13  1.13162e-05
  14  0.00270415
  15  4.43664
  16  2.9266e-07
  17  4.72911
  18  10.8482
  19  4.18502
  20  0.00124337
  21  3.3929e-06
  22  2.09952e-05
  23  5.82935e-05
  24  1.63639e-05
  25  14.6186
  26  6.85784e-06
  27  7.2678e-05
  28  4.98443
  29  0.211987
  30  0.261059
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.704e-03  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:  8.798e-01  2.611e-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.042e+00  2.120e-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: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99715/likelihoodResults_248659201_248918401_4FGL_J1301.6+3336_daily_bin36.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) = 5381.2657501
delta logL = -1.7795588974e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5381.26575009
delta logL = -1.77900255949e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5931       1.0000          .0000       10.000    
     3 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87985       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=   5380.760     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      328 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73632        43.656        .36285E-04    .19770E-03
   2  Index         4.7452        7.3696        .63935E-02    .40532E-04
   3  Normalizat    .97753        .17374        .23132E-03   -.16449E-03
   4  Prefactor     .93122        .21091        .29472E-03   -.35647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.736316
  Index      = 4.74523
  Normalizat = 0.977528
  Prefactor  = 0.931216
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.760     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73632        7.4820        .14514E-05   -1.5536    
   2  Index         4.7452        3.0128        .25574E-03   -.50976E-01
   3  Normalizat    .97753        .21585        .92530E-05   -.93787    
   4  Prefactor     .93122        .26268        .58943E-04   -.95059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95741e-10
Minuit parameter uncertainties:
  1  4.69473
  2  3.23419
  3  0.216044
  4  0.263034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99715': 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) = 5380.76022312
delta logL = 0.50550918158

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  7.363e-01  4.695e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  4.745e+00  3.234e+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:  9.312e-01  2.630e-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.775e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 195.418 33.610
Photon Index (Free Index): 4.75 +/- 3.23
Photon Flux (Free Index): 4.72e-08 +/- 5.43e-08
Energy Flux (Free Index): 6.42e-06 +/- 8.12e-06

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/99715/cmap_HighResolution_248659201_248918401_4FGL_J1301.6+3336_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', comment='SUCCESS', energy_flux2='6.42e-06', dlogl='5.06e-01', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-06 15:01:49.866853', photon_index_error2='3.23', photon_index2='4.75', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='9.22e-08', energy_flux_error2='8.12e-06', EG='1.04', time_epoch_completed='1630965709.87', return_code='0', job_id='99715', GAL2='0.93', EG2='0.98', return_code2='0', photon_flux_error2='5.43e-08', ts2='1.08', photon_index='2.59' WHERE bin_id='36' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 99715: <4FGL_J1301.6+3336_daily_bin36> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin36 195.418 33.6097 248659201 248918401 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

