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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1032
RA = 195.418, Dec = 33.6097
tmin = 506822401, tmax = 507081601
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='106705', job_status='RUN', time_executed='2021-09-06 15:06:33.270696', time_epoch_executed='1630965993.27' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106705

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106705/ft1_4FGL_J1301.6+3336_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106705/ft2_4FGL_J1301.6+3336_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106705/ft1_4FGL_J1301.6+3336_daily_bin1032.fits outfile=/scratch/kocevski/106705/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1032.fits ra=195.418 dec=33.6097 rad=12.0 tmin=506822401.0 tmax=507081601.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.49
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106705/ft1_filtered_4FGL_J1301.6+3336_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/106705/ft2_4FGL_J1301.6+3336_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/106705/ltcube_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.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/106705/ft2_4FGL_J1301.6+3336_daily_bin1032.fits
.....................!
real 12.06
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106705/ft1_filtered_4FGL_J1301.6+3336_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/106705/ft2_4FGL_J1301.6+3336_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/106705/ltcube_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.fits outfile=/scratch/kocevski/106705/expmap_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.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/106705/ltcube_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.fits
.....................!
real 190.02
user 185.39
sys 4.00

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/106705/ft1_filtered_4FGL_J1301.6+3336_daily_bin1032.fits scfile=/scratch/kocevski/106705/ft2_4FGL_J1301.6+3336_daily_bin1032.fits outfile=/scratch/kocevski/106705/cmap_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106705/ft1_filtered_4FGL_J1301.6+3336_daily_bin1032.fits scfile=/scratch/kocevski/106705/ft2_4FGL_J1301.6+3336_daily_bin1032.fits outfile=/scratch/kocevski/106705/cmap_HighResolution_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.259       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3825       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9665       1.0000         .10000E-03   10000.    
    12 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8314       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2015       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.989       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.577       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4583       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15435E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9335       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3016       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62134       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=   5452.793     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3334 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.088        .28384E-05** at limit **
   2  norm          12.259        3.4824        .49048E-06    .12073E-03
   3  Prefactor     .10000E-03    11.758        .21771E-07** at limit **
   4  Prefactor     .10000E-03    .74625       -.61050E-07** at limit **
   5  Prefactor     1.3824        1.4177       -.52296E-07   -.27970E-03
   6  norm          .10000E-03    1.9430       -.19007E-07** at limit **
   7  Prefactor     11.049        7.3671       -.13199E-07    .62539E-04
   8  Prefactor     .10000E-03    6.9414        .12526E-07** at limit **
   9  Prefactor     .10001E-03    291.38       -.11114E-03** at limit **
  10  Prefactor     .10000E-03    3.5900       -.19823E-07** at limit **
  11  Prefactor     6.9686        4.8643        .14682E-06    .76124E-04
  12  norm          .10000E-03    2.5064        .13575E-06** at limit **
  13  Prefactor     .10000E-03    19.229       -.27152E-05** at limit **
  14  Prefactor     1.7716        61.840       -.72904E-05   -.30836E-04
  15  norm          2.2015        2.6679       -.12116E-06   -.15559E-03
  16  Prefactor     .10000E-03    3.8231       -.28459E-07** at limit **
  17  norm          .10000E-03    2.3498       -.33526E-07** at limit **
  18  norm          .10000E-03    4.7250       -.77955E-07** at limit **
  19  norm          .10000E-03    1.0403        .54604E-07** at limit **
  20  norm          .10000E-03    1.5816        .23599E-07** at limit **
  21  norm          10.987        21.063        .21283E-05   -.13446E-04
  22  Prefactor     .10000E-03    .73100        .35559E-07** at limit **
  23  Prefactor     .10000E-03    4.3148       -.46830E-08** at limit **
  24  Prefactor     15.580        36.478       -.10049E-06   -.93913E-05
  25  Prefactor     3.4548        11.336       -.44210E-05   -.12422E-03
  26  Prefactor     .10000E-03    13.710       -.16475E-06** at limit **
  27  Prefactor     .10001E-03    234.07        .84762E-04** at limit **
  28  Prefactor     1.9334        3.0445       -.19940E-06   -.48797E-03
  29  Normalizat    1.3015        .17091        .75580E-06    .73475E-04
  30  Prefactor     .62150        .20767       -.43239E-06    .62754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.2587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.38243
  norm       = 0.0001
  Prefactor  = 11.0488
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 6.9686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7716
  norm       = 2.20155
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.9866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5795
  Prefactor  = 3.45478
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 1.93345
  Normalizat = 1.30149
  Prefactor  = 0.621502
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.793     FROM HESSE     STATUS=OK           576 CALLS     3910 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.259        3.4782        .71188E-04   -1.5008    
   3  Prefactor     .10000E-03    12.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .75271        .62213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3824        1.3975        .86190E-04   -1.5473    
   6  norm          .10000E-03    1.9730        .10051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.049        7.3654        .12053E-03   -1.5043    
   8  Prefactor     .10000E-03    6.9526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    292.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6069        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9686        4.8593        .13178E-03   -1.5180    
  12  norm          .10000E-03    2.5221        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7716        62.066        .30839E-03   -1.5442    
  15  norm          2.2015        2.6563        .12841E-03   -1.5411    
  16  Prefactor     .10000E-03    3.8255        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3975        .11048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.7280        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0435        .73466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5833        .90678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.987        21.049        .12086E-03   -1.5045    
  22  Prefactor     .10000E-03    .73324        .61616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3224        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.580        36.485        .10148E-03   -1.4918    
  25  Prefactor     3.4548        11.352        .21747E-03   -1.5336    
  26  Prefactor     .10000E-03    13.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    235.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9334        3.0245        .15627E-03   -1.5430    
  29  Normalizat    1.3015        .19374        .19526E-03   -.83522    
  30  Prefactor     .62150        .23472        .33339E-03   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65378e-10
Minuit parameter uncertainties:
  1  1.1095e-05
  2  3.47829
  3  2.16594e-05
  4  3.86635e-06
  5  1.39758
  6  9.46493e-07
  7  7.36603
  8  6.62978e-08
  9  0.00277306
  10  1.27493e-06
  11  4.85955
  12  2.67861e-05
  13  3.49453e-06
  14  20.9951
  15  2.6564
  16  2.26501e-06
  17  6.09872e-06
  18  1.00392e-06
  19  5.66879e-06
  20  3.11754e-06
  21  21.063
  22  1.67284e-06
  23  6.51959e-06
  24  36.537
  25  11.359
  26  2.31367e-05
  27  0.00291139
  28  3.02478
  29  0.193847
  30  0.235089
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.772e+00  2.100e+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:  6.215e-01  2.351e-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.301e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106705/likelihoodResults_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.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) = 5451.6853478
delta logL = 1.10792390342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5451.30206887
delta logL = 1.49120282989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4581       1.0000          .0000       10.000    
     3 'Normalizat'    1.2132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69730       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.

 FCN=   5451.302     FROM MIGRAD    STATUS=CONVERGED    265 CALLS      635 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .39324E-02    .29462E-03** at limit **
   2  Index         9.4579        8.8677        .25141        .45053E-04
   3  Normalizat    1.2133        .51282E-01    .34574E-01    .10864E-04
   4  Prefactor     .69726        .62634E-01    .71503E-01    .28638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.45787
  Normalizat = 1.21328
  Prefactor  = 0.697259
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.302     FROM HESSE     STATUS=OK            35 CALLS      670 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .84711E-03    .85542E-05   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4579        .36601        .12378E-01   -49.165    
   3  Normalizat    1.2133        .19724        .20087E-03   -2.2797    
   4  Prefactor     .69726        .23854        .31646E-03   -2.1052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53557e-11
Minuit parameter uncertainties:
  1  3.74885e-09
  2  0.367622
  3  0.197362
  4  0.238894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106705': 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) = 5451.30206871
delta logL = 1.49120299187

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.749e-09  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  9.458e+00  3.676e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  6.973e-01  2.389e-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.213e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 195.418 33.610
Photon Index (Free Index): 9.46 +/- 0.37
Photon Flux (Free Index): 6.46e-08 +/- 4.63e-08
Energy Flux (Free Index): 7.28e-06 +/- 5.21e-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/106705/cmap_HighResolution_506822401_507081601_4FGL_J1301.6+3336_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', energy_flux2='7.28e-06', dlogl='1.49e+00', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-06 15:19:17.655681', photon_index_error2='0.37', photon_index2='9.46', ts='0.01', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='8.16e-08', energy_flux_error2='5.21e-06', EG='1.30', time_epoch_completed='1630966757.66', return_code='0', job_id='106705', GAL2='0.70', EG2='1.21', return_code2='0', photon_flux_error2='4.63e-08', ts2='3.14', photon_index='2.59' WHERE bin_id='1032' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:19:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 106705: <4FGL_J1301.6+3336_daily_bin1032> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1032> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:05:56 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:05:58 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:05:58 2021
Terminated at Mon Sep  6 15:19:18 2021
Results reported at Mon Sep  6 15:19:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1032 195.418 33.6097 506822401 507081601 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

