/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7652
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1301.6+3336_daily_bin426
RA = 195.418, Dec = 33.6097
tmin = 349747201, tmax = 350006401
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='102840', job_status='RUN', time_executed='2021-09-06 14:57:25.328977', time_epoch_executed='1630965445.33' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102840

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102840/ft1_4FGL_J1301.6+3336_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102840/ft2_4FGL_J1301.6+3336_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102840/ft1_4FGL_J1301.6+3336_daily_bin426.fits outfile=/scratch/kocevski/102840/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin426.fits ra=195.418 dec=33.6097 rad=12.0 tmin=349747201.0 tmax=350006401.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.50
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102840/ft1_filtered_4FGL_J1301.6+3336_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/102840/ft2_4FGL_J1301.6+3336_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/102840/ltcube_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.fits outfile=/scratch/kocevski/102840/expmap_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.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/102840/ltcube_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.fits
.....................!
real 191.33
user 185.39
sys 5.38

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/102840/ft1_filtered_4FGL_J1301.6+3336_daily_bin426.fits scfile=/scratch/kocevski/102840/ft2_4FGL_J1301.6+3336_daily_bin426.fits outfile=/scratch/kocevski/102840/cmap_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.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.63
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102840/ft1_filtered_4FGL_J1301.6+3336_daily_bin426.fits scfile=/scratch/kocevski/102840/ft2_4FGL_J1301.6+3336_daily_bin426.fits outfile=/scratch/kocevski/102840/cmap_HighResolution_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14211E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0905       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2599       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6974       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7896       1.0000         .10000E-03   10000.    
     6 'norm      '    11.673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .57224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9503       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25552E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .75848       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9630       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5716       1.0000         .10000E-03   10000.    
    21 'norm      '    28.993       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8274       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0140       1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.125       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1234       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77021       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=   5947.742     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3931 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.405       -.35130E-05** at limit **
   2  norm          5.0910        2.9358       -.42418E-07    .16695E-04
   3  Prefactor     4.2618        5.3217       -.79998E-07   -.17894E-05
   4  Prefactor     1.6976        1.9624        .71780E-07    .18846E-04
   5  Prefactor     3.7901        2.1567        .70305E-07    .25086E-04
   6  norm          11.673        5.4150        .57808E-07    .99594E-06
   7  Prefactor     .54650        6.6757       -.23628E-06    .87878E-04
   8  Prefactor     10.591        10.475       -.10292E-05   -.64969E-05
   9  Prefactor     .10000E-03    38.169        .13913E-04** at limit **
  10  Prefactor     5.1482        6.6459       -.89529E-07   -.17887E-03
  11  Prefactor     .10000E-03    2.1743       -.11613E-06** at limit **
  12  norm          3.2904        3.5936       -.35042E-06   -.80779E-04
  13  Prefactor     32.828        39.901       -.16880E-05   -.28125E-05
  14  Prefactor     .10000E-03    5.9029       -.40710E-06** at limit **
  15  norm          1.9503        3.3369        .13955E-05    .10152E-04
  16  Prefactor     .10002E-03    11.268        .30584E-06** at limit **
  17  norm          .75321        .39181        .18829E-07   -.13749E-02
  18  norm          5.9629        6.1273        .58030E-07    .49813E-05
  19  norm          .10000E-03    2.4047        .42803E-06** at limit **
  20  norm          4.5704        4.7687       -.22542E-05   -.84865E-04
  21  norm          28.994        20.118        .89369E-07   -.13963E-04
  22  Prefactor     2.8220        5.6331       -.78086E-06   -.26972E-03
  23  Prefactor     6.0266        20.497        .21873E-06   -.35195E-04
  24  Prefactor     50.146        63.946        .24455E-04    .32678E-05
  25  Prefactor     .10000E-03    3.1784        .37774E-07** at limit **
  26  Prefactor     .10000E-03    6.9531        .29320E-06** at limit **
  27  Prefactor     .10000E-03    36.558       -.11559E-04** at limit **
  28  Prefactor     .10000E-03    3.3046        .20110E-07** at limit **
  29  Normalizat    1.1232        .16614       -.13111E-05    .29442E-04
  30  Prefactor     .77041        .20199        .20399E-06   -.75789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.09099
  Prefactor  = 4.26185
  Prefactor  = 1.6976
  Prefactor  = 3.79008
  norm       = 11.6734
  Prefactor  = 0.546498
  Prefactor  = 10.5912
  Prefactor  = 0.0001
  Prefactor  = 5.14816
  Prefactor  = 0.0001
  norm       = 3.29042
  Prefactor  = 32.8278
  Prefactor  = 0.0001
  norm       = 1.95034
  Prefactor  = 0.000100023
  norm       = 0.753213
  norm       = 5.96291
  norm       = 0.0001
  norm       = 4.5704
  norm       = 28.9942
  Prefactor  = 2.82201
  Prefactor  = 6.02662
  Prefactor  = 50.1461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12319
  Prefactor  = 0.770408
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.742     FROM HESSE     STATUS=OK           598 CALLS     4529 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0910        2.9413        .91445E-04   -1.5257    
   3  Prefactor     4.2618        5.3135        .19253E-03   -1.5295    
   4  Prefactor     1.6976        1.9543        .10601E-03   -1.5447    
   5  Prefactor     3.7901        2.1492        .81256E-04   -1.5319    
   6  norm          11.673        5.4072        .11725E-03   -1.5025    
   7  Prefactor     .54650        21.248        .37884E-02   -1.5560    
   8  Prefactor     10.591        10.470        .12310E-03   -1.5057    
   9  Prefactor     .10000E-03    38.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1482        6.6568        .88590E-03   -1.5254    
  11  Prefactor     .10000E-03    2.1870        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2904        3.5834        .14706E-03   -1.5345    
  13  Prefactor     32.828        39.905        .69935E-04   -1.4561    
  14  Prefactor     .10000E-03    5.9052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9503        3.3125        .17604E-03   -1.5429    
  16  Prefactor     .10002E-03    101.76        .48282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .75321        5.7077        .16903E-02   -1.5534    
  18  norm          5.9629        6.1311        .16444E-03   -1.5220    
  19  norm          .10000E-03    2.4675        .23233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5704        4.7487        .16470E-03   -1.5280    
  21  norm          28.994        20.103        .74406E-04   -1.4631    
  22  Prefactor     2.8220        5.4165        .15700E-03   -1.5372    
  23  Prefactor     6.0266        19.532        .16373E-03   -1.5217    
  24  Prefactor     50.146        63.743        .56643E-04   -1.4291    
  25  Prefactor     .10000E-03    3.1801        .13428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.9747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    36.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.4046        .27359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1232        .19105        .21155E-03   -.89011    
  30  Prefactor     .77041        .23496        .30998E-03   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30344e-09
Minuit parameter uncertainties:
  1  0.000168554
  2  2.94137
  3  5.31404
  4  1.95434
  5  2.14921
  6  5.40745
  7  6.81727
  8  10.4723
  9  7.6438e-06
  10  6.6578
  11  2.3201e-06
  12  3.58359
  13  39.9375
  14  6.14832e-06
  15  3.3128
  16  0.00305844
  17  4.14715
  18  6.13179
  19  4.59549e-05
  20  4.7491
  21  20.1078
  22  5.4174
  23  19.553
  24  63.8298
  25  1.00374e-06
  26  2.04107e-06
  27  3.0408e-05
  28  1.50735e-06
  29  0.191168
  30  0.235261
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.148e-06  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.704e-01  2.353e-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.123e+00  1.912e-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: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102840/likelihoodResults_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.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) = 5947.74295333
delta logL = -0.000803039997663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5947.74215177
delta logL = -1.47187256516e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5627       1.0000          .0000       10.000    
     3 'Normalizat'    1.1234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77014       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=   5947.742     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      261 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.684        .18142E-01** at limit **
   2  Index         1.5580        6.1269        .50000       -.11437E-06
   3  Normalizat    1.1232        .83639E-02    .21155E-03    .10409E-03
   4  Prefactor     .77041        .10379E-01    .30998E-03    .74084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.55799
  Normalizat = 1.12319
  Prefactor  = 0.77041
 **********
 **   18 **HESSE 
 **********

 FCN=   5947.742     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    363.50        .26647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5580        9.2161        .50000       -.75928    
   3  Normalizat    1.1232        .21992E-01    .42310E-04   -.89011    
   4  Prefactor     .77041        .27291E-01    .12399E-04   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51062e-08
Minuit parameter uncertainties:
  1  0.00245417
  2  811.651
  3  0.021992
  4  0.0272915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102840': 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) = 5947.74214579
delta logL = 4.49925209978e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.454e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.558e+00  8.117e+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.704e-01  2.729e-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:  1.123e+00  2.199e-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/102840/cmap_HighResolution_349747201_350006401_4FGL_J1301.6+3336_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-09-06 15:11:18.540577', job_id='102840', GAL2='0.77', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630966278.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='426' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:11:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 102840: <4FGL_J1301.6+3336_daily_bin426> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin426> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:55:36 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:55:37 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:55:37 2021
Terminated at Mon Sep  6 15:11:19 2021
Results reported at Mon Sep  6 15:11:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin426 195.418 33.6097 349747201 350006401 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 :                                   825.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

