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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin854
RA = 195.418, Dec = 33.6097
tmin = 460684801, tmax = 460944001
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='104647', job_status='RUN', time_executed='2021-09-06 15:00:55.871069', time_epoch_executed='1630965655.87' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104647/ft1_4FGL_J1301.6+3336_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104647/ft2_4FGL_J1301.6+3336_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104647/ft1_4FGL_J1301.6+3336_daily_bin854.fits outfile=/scratch/kocevski/104647/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin854.fits ra=195.418 dec=33.6097 rad=12.0 tmin=460684801.0 tmax=460944001.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.35
user 3.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104647/ft2_4FGL_J1301.6+3336_daily_bin854.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/104647/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin854.fits evtable="EVENTS" outfile="/scratch/kocevski/104647/ft1_filtered_4FGL_J1301.6+3336_daily_bin854.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104647/ft1_filtered_4FGL_J1301.6+3336_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/104647/ft2_4FGL_J1301.6+3336_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/104647/ltcube_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.fits outfile=/scratch/kocevski/104647/expmap_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.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/104647/ltcube_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.fits
.....................!
real 189.93
user 184.98
sys 4.57

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/104647/ft1_filtered_4FGL_J1301.6+3336_daily_bin854.fits scfile=/scratch/kocevski/104647/ft2_4FGL_J1301.6+3336_daily_bin854.fits outfile=/scratch/kocevski/104647/cmap_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104647/ft1_filtered_4FGL_J1301.6+3336_daily_bin854.fits scfile=/scratch/kocevski/104647/ft2_4FGL_J1301.6+3336_daily_bin854.fits outfile=/scratch/kocevski/104647/cmap_HighResolution_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.980       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2838       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36058E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    41.257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    96.867       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5891       1.0000         .10000E-03   10000.    
    12 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.127       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.805       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8681       1.0000         .10000E-03   10000.    
    18 'norm      '    .24891E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .59034E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.803       1.0000         .10000E-03   10000.    
    21 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5189       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6400       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.493       1.0000         .10000E-03   10000.    
    27 'Prefactor '    45.858       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19433E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99095       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74801       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=   5663.616     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3951 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.965        30.935       -.18888E-04    .22853E-04
   2  norm          6.2835        2.8346        .82887E-07    .55366E-03
   3  Prefactor     7.0689        7.2044        .11198E-06   -.44392E-05
   4  Prefactor     .10000E-03    .81931       -.16348E-07** at limit **
   5  Prefactor     .34912E-01    .93535       -.67272E-06    .11602E-02
   6  norm          41.257        8.5259       -.35816E-06    .30517E-03
   7  Prefactor     5.5691        6.0932        .12242E-06    .17092E-03
   8  Prefactor     .10000E-03    5.7070        .69841E-07** at limit **
   9  Prefactor     96.861        69.765       -.52753E-05    .12496E-03
  10  Prefactor     1.4912        3.4662       -.53281E-06   -.49314E-03
  11  Prefactor     3.5893        4.2005        .34986E-06    .90914E-04
  12  norm          .10000E-03    1.2047        .11276E-07** at limit **
  13  Prefactor     76.131        52.916        .37500E-05   -.14586E-04
  14  Prefactor     .10000E-03    7.8916       -.64329E-06** at limit **
  15  norm          15.339        5.3333       -.38361E-06    .18631E-03
  16  Prefactor     20.805        13.815       -.80923E-07    .18300E-03
  17  norm          7.8684        5.0195        .20410E-06    .37037E-03
  18  norm          .10000E-03    39.172        .70684E-05** at limit **
  19  norm          .10076E-03    2.2967       -.23535E-05** at limit **
  20  norm          19.808        8.5128        .16703E-05    .24940E-02
  21  norm          .10000E-03    37.607        .23973E-05** at limit **
  22  Prefactor     .10000E-03    1.4726        .23393E-06** at limit **
  23  Prefactor     9.5219        13.236        .44843E-05    .57410E-03
  24  Prefactor     6.6131        137.00       -.89668E-04    .31934E-04
  25  Prefactor     .10000E-03    8.7618        .75181E-06** at limit **
  26  Prefactor     21.490        23.403       -.30010E-05    .12544E-03
  27  Prefactor     45.853        60.210       -.73860E-05    .46431E-04
  28  Prefactor     .10109E-03    2.0336       -.97617E-06** at limit **
  29  Normalizat    .99097        .17340        .52751E-05    .66738E-03
  30  Prefactor     .74800        .20099       -.39164E-06    .63320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9647
  norm       = 6.28354
  Prefactor  = 7.0689
  Prefactor  = 0.0001
  Prefactor  = 0.034912
  norm       = 41.2568
  Prefactor  = 5.56908
  Prefactor  = 0.0001
  Prefactor  = 96.8612
  Prefactor  = 1.49122
  Prefactor  = 3.58926
  norm       = 0.0001
  Prefactor  = 76.131
  Prefactor  = 0.0001
  norm       = 15.3395
  Prefactor  = 20.8054
  norm       = 7.86838
  norm       = 0.000100002
  norm       = 0.000100763
  norm       = 19.8077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.52192
  Prefactor  = 6.61313
  Prefactor  = 0.0001
  Prefactor  = 21.49
  Prefactor  = 45.8526
  Prefactor  = 0.000101087
  Normalizat = 0.990966
  Prefactor  = 0.747996
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.616     FROM HESSE     STATUS=OK           586 CALLS     4537 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.965        30.867        .89605E-04   -1.4814    
   2  norm          6.2835        2.8757        .81280E-04   -1.5207    
   3  Prefactor     7.0689        7.1988        .15088E-03   -1.5176    
   4  Prefactor     .10000E-03    .83133        .66429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34912E-01    19.998        .13749E-02   -1.5671    
   6  norm          41.257        8.5216        .62408E-04   -1.4422    
   7  Prefactor     5.5691        6.0987        .17024E-03   -1.5236    
   8  Prefactor     .10000E-03    5.7087        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     96.861        69.755        .40841E-04   -1.3736    
  10  Prefactor     1.4912        3.4208        .20834E-03   -1.5464    
  11  Prefactor     3.5893        4.1938        .16052E-03   -1.5329    
  12  norm          .10000E-03    1.2064        .80641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     76.131        52.880        .23011E-03   -1.3961    
  14  Prefactor     .10000E-03    7.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.339        5.3368        .98540E-04   -1.4924    
  16  Prefactor     20.805        13.815        .87813E-04   -1.4795    
  17  norm          7.8684        5.0159        .12963E-03   -1.5147    
  18  norm          .10000E-03    40.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10076E-03    38.493        .19208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.808        7.7705        .90003E-04   -1.4818    
  21  norm          .10000E-03    37.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.4833        .88844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.5219        13.133        .12989E-03   -1.5091    
  24  Prefactor     6.6131        136.21        .15573E-03   -1.5194    
  25  Prefactor     .10000E-03    8.7909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.490        23.454        .86396E-04   -1.4780    
  27  Prefactor     45.853        60.271        .59207E-04   -1.4353    
  28  Prefactor     .10109E-03    65.379        .20545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99097        .20112        .22713E-03   -.93334    
  30  Prefactor     .74800        .23370        .31714E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72001e-08
Minuit parameter uncertainties:
  1  30.8916
  2  2.87573
  3  7.19973
  4  4.63137e-09
  5  1.66928
  6  8.52184
  7  6.09934
  8  6.92885e-06
  9  69.8138
  10  3.42127
  11  4.19419
  12  9.34293e-07
  13  52.9123
  14  8.98463e-07
  15  5.33692
  16  13.8171
  17  5.01616
  18  0.000607248
  19  0.0108436
  20  7.77087
  21  0.000142923
  22  2.79352e-05
  23  13.1374
  24  60.1822
  25  5.48441e-07
  26  23.4636
  27  60.3511
  28  0.016877
  29  0.20127
  30  0.234006
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.985e-07  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:  7.480e-01  2.340e-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.910e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/104647/likelihoodResults_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.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) = 5663.61654312
delta logL = -0.000602785328738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.61594032
delta logL = 1.33795765578e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5783       1.0000          .0000       10.000    
     3 'Normalizat'    .99099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74798       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=   5663.616     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1166.6        .18142E-01** at limit **
   2  Index         1.9504        5.9806        .20000E-01   -.31264E-07
   3  Normalizat    .99097        .54682E-01    .22713E-03    .17969E-04
   4  Prefactor     .74799        .67434E-01    .31714E-03    .59148E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95037
  Normalizat = 0.990968
  Prefactor  = 0.747992
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.616     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8887        .23099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9504        5.9352        .80000E-03   -.65597    
   3  Normalizat    .99097        .18757        .90851E-05   -.93334    
   4  Prefactor     .74799        .23131        .12686E-04   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60052e-11
Minuit parameter uncertainties:
  1  5.08356e-05
  2  376.353
  3  0.187698
  4  0.231609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104647': 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) = 5663.61593906
delta logL = 1.27281145978e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.084e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.950e+00  3.764e+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:  7.480e-01  2.316e-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.910e-01  1.877e-01  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/104647/cmap_HighResolution_460684801_460944001_4FGL_J1301.6+3336_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-06 15:14:16.968937', job_id='104647', GAL2='0.75', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630966456.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='854' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:14:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 104647: <4FGL_J1301.6+3336_daily_bin854> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin854> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 15:00:39 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:00:40 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:00:40 2021
Terminated at Mon Sep  6 15:14:17 2021
Results reported at Mon Sep  6 15:14:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin854 195.418 33.6097 460684801 460944001 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 :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

