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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1310
RA = 195.418, Dec = 33.6097
tmin = 578880001, tmax = 579139201
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='107184', job_status='RUN', time_executed='2021-09-06 15:08:54.919369', time_epoch_executed='1630966134.92' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107184

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107184/ft1_4FGL_J1301.6+3336_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107184/ft1_4FGL_J1301.6+3336_daily_bin1310.fits outfile=/scratch/kocevski/107184/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1310.fits ra=195.418 dec=33.6097 rad=12.0 tmin=578880001.0 tmax=579139201.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.71
user 3.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.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/107184/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1310.fits evtable="EVENTS" outfile="/scratch/kocevski/107184/ft1_filtered_4FGL_J1301.6+3336_daily_bin1310.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 1.12
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107184/ft1_filtered_4FGL_J1301.6+3336_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/107184/ltcube_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.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/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.fits
.....................!
real 12.22
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107184/ft1_filtered_4FGL_J1301.6+3336_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/107184/ltcube_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.fits outfile=/scratch/kocevski/107184/expmap_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.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/107184/ltcube_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.fits
.....................!
real 192.18
user 185.89
sys 5.14

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/107184/ft1_filtered_4FGL_J1301.6+3336_daily_bin1310.fits scfile=/scratch/kocevski/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.fits outfile=/scratch/kocevski/107184/cmap_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.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.69
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107184/ft1_filtered_4FGL_J1301.6+3336_daily_bin1310.fits scfile=/scratch/kocevski/107184/ft2_4FGL_J1301.6+3336_daily_bin1310.fits outfile=/scratch/kocevski/107184/cmap_HighResolution_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.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.55
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.336       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.072       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5733       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.170       1.0000         .10000E-03   10000.    
    18 'norm      '    11.724       1.0000         .10000E-03   10000.    
    19 'norm      '    8.1943       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.404       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7794       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.374       1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.407       1.0000         .10000E-03   10000.    
    25 'Prefactor '    51.578       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7677       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75352       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=   6088.891     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3873 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.336        32.827        .31158E-02    .71235E-04
   2  norm          5.3012        2.9936        .43638E-02   -.55900E-04
   3  Prefactor     5.0893        6.2262        .44557E-02    .18366E-03
   4  Prefactor     5.4907        2.8640        .42865E-02    .14506E-03
   5  Prefactor     .10000E-03    .97699        .30199E-01** at limit **
   6  norm          10.012        4.6405        .31659E-02    .17832E-03
   7  Prefactor     1.7337        10.378        .79597E-02    .44678E-03
   8  Prefactor     .10002E-03    7.2045        .90712E-02** at limit **
   9  Prefactor     13.072        100.84        .27697E-02   -.16469E-03
  10  Prefactor     .10000E-03    4.9061        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.5095        .90712E-02** at limit **
  12  norm          2.5732        4.0031        .63609E-02   -.17489E-02
  13  Prefactor     34.429        56.443        .17074E-02   -.52916E-03
  14  Prefactor     .10000E-03    15.907        .90712E-02** at limit **
  15  norm          .10000E-03    1.3435        .90712E-02** at limit **
  16  Prefactor     .10000E-03    5.3110        .90712E-02** at limit **
  17  norm          12.171        6.0553        .28707E-02    .91276E-04
  18  norm          11.724        10.944        .29249E-02    .21346E-04
  19  norm          8.1922        4.0370        .35014E-02    .13867E-03
  20  norm          .10001E-03    11.244        .90712E-02** at limit **
  21  norm          11.405        11.227        .29657E-02    .33791E-04
  22  Prefactor     2.7792        3.3746        .61022E-02    .69666E-03
  23  Prefactor     10.375        14.511        .31100E-02    .16178E-03
  24  Prefactor     48.407        39.519        .14409E-02   -.37955E-03
  25  Prefactor     51.579        21.404        .13961E-02   -.41908E-03
  26  Prefactor     .10003E-03    8.0352        .90712E-02** at limit **
  27  Prefactor     .10000E-03    49.706        .90712E-02** at limit **
  28  Prefactor     3.7677        3.0596        .51997E-02   -.15764E-02
  29  Normalizat    1.0272        .16421        .42449E-01    .13838E-04
  30  Prefactor     .75353        .19662        .70679E-01    .22991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3358
  norm       = 5.30123
  Prefactor  = 5.08927
  Prefactor  = 5.49071
  Prefactor  = 0.0001
  norm       = 10.012
  Prefactor  = 1.73374
  Prefactor  = 0.000100016
  Prefactor  = 13.0724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57317
  Prefactor  = 34.4294
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1708
  norm       = 11.724
  norm       = 8.19221
  norm       = 0.000100008
  norm       = 11.4046
  Prefactor  = 2.77916
  Prefactor  = 10.375
  Prefactor  = 48.4074
  Prefactor  = 51.5793
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 3.76767
  Normalizat = 1.0272
  Prefactor  = 0.753528
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.891     FROM HESSE     STATUS=OK           590 CALLS     4463 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.336        32.825        .12463E-03   -1.5065    
   2  norm          5.3012        3.0020        .92372E-04   -1.5247    
   3  Prefactor     5.0893        6.2168        .17823E-03   -1.5257    
   4  Prefactor     5.4907        2.8677        .86320E-04   -1.5239    
   5  Prefactor     .10000E-03    1.6121        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.012        4.6367        .11102E-03   -1.5075    
   7  Prefactor     1.7337        10.173        .31839E-03   -1.5445    
   8  Prefactor     .10002E-03    7.2183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.072        100.14        .11079E-03   -1.4985    
  10  Prefactor     .10000E-03    4.9351        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5366        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5732        3.9609        .18008E-03   -1.5387    
  13  Prefactor     34.429        56.471        .68296E-04   -1.4534    
  14  Prefactor     .10000E-03    15.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3537        .88307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3185        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.171        6.0465        .11483E-03   -1.5010    
  18  norm          11.724        10.943        .11700E-03   -1.5023    
  19  norm          8.1922        3.9770        .10011E-03   -1.5135    
  20  norm          .10001E-03    11.424        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.405        11.229        .11863E-03   -1.5032    
  22  Prefactor     2.7792        3.3313        .13712E-03   -1.5375    
  23  Prefactor     10.375        14.418        .12440E-03   -1.5064    
  24  Prefactor     48.407        39.512        .57635E-04   -1.4315    
  25  Prefactor     51.579        21.421        .55843E-04   -1.4270    
  26  Prefactor     .10003E-03    8.0483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    49.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.7677        3.0614        .11916E-03   -1.5320    
  29  Normalizat    1.0272        .19283        .22074E-03   -.92125    
  30  Prefactor     .75353        .22885        .31277E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41148e-08
Minuit parameter uncertainties:
  1  32.8828
  2  3.00209
  3  6.21763
  4  2.86781
  5  2.42084e-06
  6  4.63686
  7  8.40131
  8  0.000672066
  9  72.5326
  10  2.89097e-05
  11  3.63026e-06
  12  3.96135
  13  56.559
  14  0.00043345
  15  1.83766e-06
  16  9.26937e-05
  17  6.04681
  18  10.9448
  19  3.97716
  20  0.000607475
  21  11.2314
  22  3.33153
  23  14.4229
  24  39.5334
  25  21.4238
  26  0.000907381
  27  0.000144937
  28  3.0615
  29  0.192958
  30  0.229136
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.335e-04  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.535e-01  2.291e-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.027e+00  1.930e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107184/likelihoodResults_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.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) = 6088.89122982
delta logL = -0.000298262057186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6088.89093346
delta logL = -1.89806087292e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8807       1.0000          .0000       10.000    
     3 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75353       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=   6088.891     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      282 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10585E-03    6.8698        .18142E-01** at limit **
   2  Index         2.7692        7.8663        .50000        .33493E-04
   3  Normalizat    1.0272        .29812E-02    .22074E-03   -.36408E-03
   4  Prefactor     .75353        .36853E-02    .31277E-03   -.17760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105846
  Index      = 2.76923
  Normalizat = 1.0272
  Prefactor  = 0.753529
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10585E-03    243.94        .52405E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7692        5.4973        .50000       -.46246    
   3  Normalizat    1.0272        .17949E-01    .44147E-04   -.92125    
   4  Prefactor     .75353        .22189E-01    .12511E-04   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28383e-08
Minuit parameter uncertainties:
  1  0.0758395
  2  422.806
  3  0.0179495
  4  0.0221889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107184': 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) = 6088.89093278
delta logL = -1.22298297356e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.058e-04  7.584e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.769e+00  4.228e+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.535e-01  2.219e-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.027e+00  1.795e-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/107184/cmap_HighResolution_578880001_579139201_4FGL_J1301.6+3336_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-06 15:22:52.727648', job_id='107184', GAL2='0.75', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630966972.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1310' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:22:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 107184: <4FGL_J1301.6+3336_daily_bin1310> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1310> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:32 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06:34 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:06:34 2021
Terminated at Mon Sep  6 15:22:53 2021
Results reported at Mon Sep  6 15:22:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1310 195.418 33.6097 578880001 579139201 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 :                                   830.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

