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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1009
RA = 195.418, Dec = 33.6097
tmin = 500860801, tmax = 501120001
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='104888', job_status='RUN', time_executed='2021-09-06 15:04:27.172393', time_epoch_executed='1630965867.17' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104888/ft1_4FGL_J1301.6+3336_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104888/ft2_4FGL_J1301.6+3336_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104888/ft1_4FGL_J1301.6+3336_daily_bin1009.fits outfile=/scratch/kocevski/104888/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1009.fits ra=195.418 dec=33.6097 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.55
user 4.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104888/ft1_filtered_4FGL_J1301.6+3336_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/104888/ft2_4FGL_J1301.6+3336_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/104888/ltcube_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.fits outfile=/scratch/kocevski/104888/expmap_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.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/104888/ltcube_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.fits
.....................!
real 190.37
user 185.59
sys 4.17

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/104888/ft1_filtered_4FGL_J1301.6+3336_daily_bin1009.fits scfile=/scratch/kocevski/104888/ft2_4FGL_J1301.6+3336_daily_bin1009.fits outfile=/scratch/kocevski/104888/cmap_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.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/104888/ft1_filtered_4FGL_J1301.6+3336_daily_bin1009.fits scfile=/scratch/kocevski/104888/ft2_4FGL_J1301.6+3336_daily_bin1009.fits outfile=/scratch/kocevski/104888/cmap_HighResolution_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.222       1.0000         .10000E-03   10000.    
     2 'norm      '    13.158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.7256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68892       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.7293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0564       1.0000         .10000E-03   10000.    
    18 'norm      '    25.455       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.995       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7191       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .54731       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4047       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=   4870.008     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3861 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.214        55.875       -.19270E-05   -.24509E-04
   2  norm          13.159        4.5570       -.17206E-07    .24021E-03
   3  Prefactor     7.9765        11.683        .23963E-06    .81968E-05
   4  Prefactor     .10000E-03    2.6303       -.11722E-06** at limit **
   5  Prefactor     .10000E-03    1.8507       -.47981E-06** at limit **
   6  norm          9.7262        5.5782       -.18768E-07    .82196E-04
   7  Prefactor     7.3983        11.840        .26688E-05   -.12265E-03
   8  Prefactor     .10000E-03    8.4446       -.67815E-06** at limit **
   9  Prefactor     .10000E-03    64.384       -.37008E-05** at limit **
  10  Prefactor     .66873        9.7515        .91373E-06   -.20361E-03
  11  Prefactor     .10000E-03    3.1301        .93937E-08** at limit **
  12  norm          7.7292        5.7695       -.35180E-07    .20419E-04
  13  Prefactor     .10000E-03    29.380       -.13026E-05** at limit **
  14  Prefactor     .10000E-03    7.2965       -.52691E-06** at limit **
  15  norm          6.3778        5.5675       -.92018E-07   -.19021E-03
  16  Prefactor     .10000E-03    7.9146        .57196E-06** at limit **
  17  norm          4.0570        6.2490        .34038E-06   -.74533E-04
  18  norm          25.455        15.389        .65563E-08    .31922E-05
  19  norm          .10000E-03    1.6200       -.16792E-07** at limit **
  20  norm          .10000E-03    2.0662       -.99538E-08** at limit **
  21  norm          11.995        21.972        .16215E-07   -.13749E-04
  22  Prefactor     7.7184        4.0581        .65176E-08   -.14083E-03
  23  Prefactor     .10000E-03    7.6040        .54888E-06** at limit **
  24  Prefactor     .10000E-03    54.393        .14849E-05** at limit **
  25  Prefactor     .10000E-03    22.495        .38867E-06** at limit **
  26  Prefactor     .10000E-03    13.487        .19389E-06** at limit **
  27  Prefactor     .10000E-03    47.630        .25332E-05** at limit **
  28  Prefactor     .10000E-03    3.4613        .39507E-07** at limit **
  29  Normalizat    .54722        .18028        .21814E-06   -.15370E-04
  30  Prefactor     1.4048        .22689       -.51824E-06    .23651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2141
  norm       = 13.1592
  Prefactor  = 7.97655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.72621
  Prefactor  = 7.39829
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.668733
  Prefactor  = 0.0001
  norm       = 7.72922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.37776
  Prefactor  = 0.0001
  norm       = 4.05697
  norm       = 25.455
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.9949
  Prefactor  = 7.7184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.547224
  Prefactor  = 1.40478
 **********
 **   18 **HESSE 
 **********

 FCN=   4870.008     FROM HESSE     STATUS=OK           584 CALLS     4445 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.214        56.335        .12533E-03   -1.5069    
   2  norm          13.159        4.4592        .82093E-04   -1.4982    
   3  Prefactor     7.9765        11.637        .14199E-03   -1.5143    
   4  Prefactor     .10000E-03    2.6931        .21947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9785        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.7262        5.5706        .12046E-03   -1.5084    
   7  Prefactor     7.3983        12.300        .73745E-03   -1.5164    
   8  Prefactor     .10000E-03    8.5280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .66873        30.374        .40214E-02   -1.5544    
  11  Prefactor     .10000E-03    3.1550        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.7292        5.7631        .13766E-03   -1.5152    
  13  Prefactor     .10000E-03    29.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3778        5.5234        .14242E-03   -1.5203    
  16  Prefactor     .10000E-03    7.9760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0570        6.2245        .20020E-03   -1.5305    
  18  norm          25.455        15.391        .79398E-04   -1.4698    
  19  norm          .10000E-03    1.6373        .86637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0697        .97955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.995        21.960        .11566E-03   -1.5015    
  22  Prefactor     7.7184        4.0557        .93807E-04   -1.5152    
  23  Prefactor     .10000E-03    7.6694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    54.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    48.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.5387        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .54722        .20966        .28716E-03   -1.1027    
  30  Prefactor     1.4048        .26703        .24323E-03   -.80243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57285e-10
Minuit parameter uncertainties:
  1  48.0449
  2  4.45927
  3  11.6407
  4  2.98184e-06
  5  2.16226e-05
  6  5.57088
  7  12.3038
  8  5.84512e-05
  9  0.000883289
  10  9.01804
  11  3.13684e-07
  12  5.76352
  13  0.000210335
  14  4.21792e-05
  15  5.52384
  16  4.40508e-05
  17  6.22551
  18  15.3935
  19  6.16113e-07
  20  3.56983e-07
  21  21.9751
  22  4.05583
  23  4.37467e-05
  24  0.000315775
  25  3.29586e-05
  26  1.70202e-05
  27  0.000497674
  28  8.59554e-09
  29  0.209965
  30  0.267292
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.218e-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:  1.405e+00  2.673e-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:  5.472e-01  2.100e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104888/likelihoodResults_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.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) = 4870.00887767
delta logL = -0.000642792759209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4870.00823579
delta logL = -9.15291821002e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5706       1.0000          .0000       10.000    
     3 'Normalizat'    .54742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4045       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=   4870.008     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      261 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.394        .18142E-01** at limit **
   2  Index         1.9505        9.0243        .50000        .34292E-06
   3  Normalizat    .54722        .69887E-02    .28716E-03   -.34072E-03
   4  Prefactor     1.4048        .91422E-02    .24323E-03   -.39954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95051
  Normalizat = 0.547224
  Prefactor  = 1.40477
 **********
 **   18 **HESSE 
 **********

 FCN=   4870.008     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    228.10        .21678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9505        8.8764        .50000       -.65593    
   3  Normalizat    .54722        .20666E-01    .11486E-04   -1.1027    
   4  Prefactor     1.4048        .27034E-01    .48646E-04   -.80243    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.69995e-09
Minuit parameter uncertainties:
  1  8.49795e-05
  2  839.029
  3  0.0206661
  4  0.0270343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104888': 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) = 4870.00823301
delta logL = 1.86990018847e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.498e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.951e+00  8.390e+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:  1.405e+00  2.703e-02  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:  5.472e-01  2.067e-02  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/104888/cmap_HighResolution_500860801_501120001_4FGL_J1301.6+3336_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-06 15:16:34.131591', job_id='104888', GAL2='1.40', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630966594.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1009' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 104888: <4FGL_J1301.6+3336_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1009> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 15:00:55 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:00:56 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:56 2021
Terminated at Mon Sep  6 15:16:34 2021
Results reported at Mon Sep  6 15:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1009 195.418 33.6097 500860801 501120001 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 :                                   716.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

