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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin17
RA = 195.418, Dec = 33.6097
tmin = 243734401, tmax = 243993601
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='99690', job_status='RUN', time_executed='2021-09-06 14:49:20.606289', time_epoch_executed='1630964960.61' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99690/ft1_4FGL_J1301.6+3336_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99690/ft2_4FGL_J1301.6+3336_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99690/ft1_4FGL_J1301.6+3336_daily_bin17.fits outfile=/scratch/kocevski/99690/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin17.fits ra=195.418 dec=33.6097 rad=12.0 tmin=243734401.0 tmax=243993601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.39
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99690/ft1_filtered_4FGL_J1301.6+3336_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/99690/ft2_4FGL_J1301.6+3336_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/99690/ltcube_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.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/99690/ft2_4FGL_J1301.6+3336_daily_bin17.fits
.....................!
real 12.63
user 12.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99690/ft1_filtered_4FGL_J1301.6+3336_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/99690/ft2_4FGL_J1301.6+3336_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/99690/ltcube_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.fits outfile=/scratch/kocevski/99690/expmap_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.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/99690/ltcube_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.fits
.....................!
real 190.90
user 185.34
sys 5.18

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/99690/ft1_filtered_4FGL_J1301.6+3336_daily_bin17.fits scfile=/scratch/kocevski/99690/ft2_4FGL_J1301.6+3336_daily_bin17.fits outfile=/scratch/kocevski/99690/cmap_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99690/ft1_filtered_4FGL_J1301.6+3336_daily_bin17.fits scfile=/scratch/kocevski/99690/ft2_4FGL_J1301.6+3336_daily_bin17.fits outfile=/scratch/kocevski/99690/cmap_HighResolution_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.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.65
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3535       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7532       1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5490       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13583E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3923       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13320E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.317       1.0000         .10000E-03   10000.    
    20 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0403       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .29096E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.5895       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83696       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=   5765.465     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3331 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.645        .20718E-06** at limit **
   2  norm          9.3541        3.2996       -.41494E-07   -.68860E-04
   3  Prefactor     3.8541        5.5193        .43877E-05   -.17557E-03
   4  Prefactor     .10000E-03    .67590       -.23344E-07** at limit **
   5  Prefactor     9.7534        2.7849       -.75968E-07   -.11555E-03
   6  norm          .10000E-03    1.8556        .28479E-07** at limit **
   7  Prefactor     3.6627        5.8398        .38193E-05   -.12881E-03
   8  Prefactor     .10000E-03    18.086       -.87746E-06** at limit **
   9  Prefactor     .10000E-03    24.863        .84604E-06** at limit **
  10  Prefactor     7.1408        10.971        .49880E-06   -.16607E-04
  11  Prefactor     3.5495        6.5628        .64454E-06   -.43581E-03
  12  norm          .10000E-03    1.4286       -.24016E-07** at limit **
  13  Prefactor     .10002E-03    94.048        .31006E-05** at limit **
  14  Prefactor     .10000E-03    13.749        .25543E-07** at limit **
  15  norm          2.3930        3.1040        .21442E-06   -.23622E-04
  16  Prefactor     .10048E-03    10.939        .28003E-05** at limit **
  17  norm          .10000E-03    1.8421        .54794E-08** at limit **
  18  norm          .10000E-03    4.1080        .35429E-07** at limit **
  19  norm          13.319        4.8969        .45619E-07   -.63401E-03
  20  norm          .10000E-03    5.4157       -.43442E-06** at limit **
  21  norm          .10000E-03    6.3668        .23856E-06** at limit **
  22  Prefactor     .10000E-03    1.3317       -.35759E-07** at limit **
  23  Prefactor     8.0461        14.191        .25887E-06   -.62713E-04
  24  Prefactor     .10001E-03    43.615       -.19813E-05** at limit **
  25  Prefactor     .10000E-03    5.8053       -.98280E-07** at limit **
  26  Prefactor     .10000E-03    6.7910       -.12872E-06** at limit **
  27  Prefactor     .10040E-03    249.78       -.17034E-04** at limit **
  28  Prefactor     4.5905        3.6467        .96160E-07   -.38072E-04
  29  Normalizat    1.0609        .16548       -.11331E-05   -.25422E-03
  30  Prefactor     .83696        .20207       -.84531E-06   -.18895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.35407
  Prefactor  = 3.85412
  Prefactor  = 0.0001
  Prefactor  = 9.7534
  norm       = 0.0001
  Prefactor  = 3.66272
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 7.14079
  Prefactor  = 3.54949
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 2.393
  Prefactor  = 0.000100481
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.319
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.04615
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100398
  Prefactor  = 4.59046
  Normalizat = 1.06094
  Prefactor  = 0.836964
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.465     FROM HESSE     STATUS=OK           580 CALLS     3911 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3541        3.2977        .78566E-04   -1.5096    
   3  Prefactor     3.8541        5.5301        .10281E-02   -1.5315    
   4  Prefactor     .10000E-03    .67777        .60899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7534        2.7850        .64664E-04   -1.5083    
   6  norm          .10000E-03    1.8765        .10099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6627        5.8434        .10556E-02   -1.5325    
   8  Prefactor     .10000E-03    18.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1408        10.950        .15020E-03   -1.5173    
  11  Prefactor     3.5495        6.2822        .21455E-03   -1.5331    
  12  norm          .10000E-03    1.4331        .88605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    94.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3930        3.0855        .14590E-03   -1.5399    
  16  Prefactor     .10048E-03    60.882        .44790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8512        .10058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1092        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.319        4.8846        .93093E-04   -1.4978    
  20  norm          .10000E-03    5.4626        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.3731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.3394        .85407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.0461        14.151        .14140E-03   -1.5141    
  24  Prefactor     .10001E-03    43.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.8132        .17867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.7972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10040E-03    256.11        .19861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.5905        3.6453        .12521E-03   -1.5279    
  29  Normalizat    1.0609        .19375        .21912E-03   -.91016    
  30  Prefactor     .83696        .23685        .29984E-03   -.98380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88687e-09
Minuit parameter uncertainties:
  1  0.000108067
  2  3.29777
  3  5.53085
  4  1.18253e-06
  5  2.78507
  6  1.67144e-06
  7  5.8443
  8  0.000339943
  9  0.000422426
  10  10.9526
  11  6.28336
  12  9.61122e-07
  13  0.00250318
  14  5.85324e-05
  15  3.08566
  16  0.0108359
  17  2.5152e-06
  18  3.27427e-06
  19  4.88471
  20  6.81862e-06
  21  5.71921e-05
  22  2.06976e-06
  23  14.1573
  24  0.00128237
  25  2.37987e-05
  26  3.65935e-05
  27  0.0202824
  28  3.64547
  29  0.193878
  30  0.237136
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.853e-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:  8.370e-01  2.371e-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.061e+00  1.939e-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: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99690/likelihoodResults_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.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) = 5765.46511254
delta logL = -0.000345637778082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5765.46476708
delta logL = -1.75454260898e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6076       1.0000          .0000       10.000    
     3 'Normalizat'    1.0608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83709       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=   5765.465     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    855.73        .90712E-02** at limit **
   2  Index         2.6227        5.8756        .50000       -.10275E-04
   3  Normalizat    1.0609        .34731E-01    .39883E-01    .24815E-04
   4  Prefactor     .83696        .42894E-01    .67776E-01    .26004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.62266
  Normalizat = 1.06094
  Prefactor  = 0.836964
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.465     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2113.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6227        5.4446        .50000       -.49550    
   3  Normalizat    1.0609        .69569E-01    .21912E-03   -.91016    
   4  Prefactor     .83696        .85837E-01    .29984E-03   -.98380    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29597e-08
Minuit parameter uncertainties:
  1  0.000492961
  2  56.2273
  3  0.069575
  4  0.0858503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99690': 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) = 5765.46476684
delta logL = 6.60847945255e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.930e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.623e+00  5.623e+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:  8.370e-01  8.585e-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.061e+00  6.958e-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/99690/cmap_HighResolution_243734401_243993601_4FGL_J1301.6+3336_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-06 15:01:48.694295', job_id='99690', GAL2='0.84', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630965708.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='17' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 99690: <4FGL_J1301.6+3336_daily_bin17> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin17 195.418 33.6097 243734401 243993601 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 :                                   746.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

