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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1205
RA = 195.418, Dec = 33.6097
tmin = 551664001, tmax = 551923201
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='107017', job_status='RUN', time_executed='2021-09-06 15:10:05.557202', time_epoch_executed='1630966205.56' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107017/ft1_4FGL_J1301.6+3336_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107017/ft2_4FGL_J1301.6+3336_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107017/ft1_4FGL_J1301.6+3336_daily_bin1205.fits outfile=/scratch/kocevski/107017/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1205.fits ra=195.418 dec=33.6097 rad=12.0 tmin=551664001.0 tmax=551923201.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.81
user 3.51
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107017/ft1_filtered_4FGL_J1301.6+3336_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/107017/ft2_4FGL_J1301.6+3336_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/107017/ltcube_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.fits outfile=/scratch/kocevski/107017/expmap_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.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/107017/ltcube_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.fits
.....................!
real 190.12
user 184.68
sys 4.86

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/107017/ft1_filtered_4FGL_J1301.6+3336_daily_bin1205.fits scfile=/scratch/kocevski/107017/ft2_4FGL_J1301.6+3336_daily_bin1205.fits outfile=/scratch/kocevski/107017/cmap_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107017/ft1_filtered_4FGL_J1301.6+3336_daily_bin1205.fits scfile=/scratch/kocevski/107017/ft2_4FGL_J1301.6+3336_daily_bin1205.fits outfile=/scratch/kocevski/107017/cmap_HighResolution_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107017/ft1_filtered_4FGL_J1301.6+3336_daily_bin1205.fits', '/scratch/kocevski/107017/ft2_4FGL_J1301.6+3336_daily_bin1205.fits', expMap='/scratch/kocevski/107017/expmap_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.fits', expCube='/scratch/kocevski/107017/ltcube_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107017/Model_4FGL_J1301.6+3336_daily_bin1205.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/107017/ft1_filtered_4FGL_J1301.6+3336_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/107017/ft2_4FGL_J1301.6+3336_daily_bin1205.fits
Exposure map: /scratch/kocevski/107017/expmap_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.fits
Exposure cube: /scratch/kocevski/107017/ltcube_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107017/Model_4FGL_J1301.6+3336_daily_bin1205.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 15.5024559885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 13.5087824915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1752       1.0000         .10000E-03   10000.    
     2 'norm      '    7.9802       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4720       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9938       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8374       1.0000         .10000E-03   10000.    
    15 'norm      '    .58144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9176       1.0000         .10000E-03   10000.    
    18 'norm      '    8.1786       1.0000         .10000E-03   10000.    
    19 'norm      '    5.5549       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8539       1.0000         .10000E-03   10000.    
    21 'norm      '    13.232       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3070       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.661       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8511       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1494.7       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.3903       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3556       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11125E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .15360E-03   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13.48493     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      224 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1752        1.0074         .0000         .0000    
   2  norm          7.9802        1.0020         .0000         .0000    
   3  Prefactor     1.9412        1.0378         .0000         .0000    
   4  Prefactor     1.8326        1.0431         .0000         .0000    
   5  Prefactor     3.2056        1.0127         .0000         .0000    
   6  norm          6.5566        1.0029         .0000         .0000    
   7  Prefactor     7.3878        1.0023         .0000         .0000    
   8  Prefactor     2.2291        1.0277         .0000         .0000    
   9  Prefactor     8.0566        1.0019         .0000         .0000    
  10  Prefactor     .25868        1308.7        .66429E-04   -.18506E-01
  11  Prefactor     1.4720        1.0740         .0000         .0000    
  12  norm          2.9938        1.0147         .0000         .0000    
  13  Prefactor     4.3085        1.0069         .0000         .0000    
  14  Prefactor     4.8374        1.0054         .0000         .0000    
  15  norm          .10002E-03    463.29       -.70359E-06** at limit **
  16  Prefactor     2.1112        1.0312         .0000         .0000    
  17  norm          1.9176        1.0388         .0000         .0000    
  18  norm          8.1786        1.0019         .0000         .0000    
  19  norm          5.5549        1.0041         .0000         .0000    
  20  norm          1.8539        1.0420         .0000         .0000    
  21  norm          .64537E-02    1112.7       -.11966E-04    .34449E-02
  22  Prefactor     1.3070        1.1030         .0000         .0000    
  23  Prefactor     .37358        1628.2       -.87050E-04    .17565E-01
  24  Prefactor     5.8511        1.0037         .0000         .0000    
  25  Prefactor     1499.5        158.16        .60361E-05   -.71738E-01
  26  Prefactor     .10005E-03    642.79       -.57732E-06** at limit **
  27  Prefactor     8.3556        1.0018         .0000         .0000    
  28  Prefactor     .10001E-03    129.43        .43770E-06** at limit **
  29  Normalizat    .10000E-01    1.9892        .68180E-08** at limit **
  30  Prefactor      .0000        6.2058       -.12280E-08** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17517
  norm       = 7.98016
  Prefactor  = 1.9412
  Prefactor  = 1.83259
  Prefactor  = 3.20562
  norm       = 6.55658
  Prefactor  = 7.38783
  Prefactor  = 2.22911
  Prefactor  = 8.05657
  Prefactor  = 0.258676
  Prefactor  = 1.47196
  norm       = 2.99384
  Prefactor  = 4.30848
  Prefactor  = 4.83739
  norm       = 0.000100022
  Prefactor  = 2.11118
  norm       = 1.91757
  norm       = 8.1786
  norm       = 5.55486
  norm       = 1.85393
  norm       = 0.00645371
  Prefactor  = 1.30702
  Prefactor  = 0.373582
  Prefactor  = 5.85114
  Prefactor  = 1499.53
  Prefactor  = 0.00010005
  Prefactor  = 8.35559
  Prefactor  = 0.00010001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13.48493     FROM HESSE     STATUS=FAILED        11 CALLS      235 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     540.19        535.96         .0000       -1.5299    
   2  norm          7.9802        1.0020         .0000       -1.5143    
   3  Prefactor     1.9412        1.0378         .0000       -1.5429    
   4  Prefactor     1.8326        1.0431         .0000       -1.5437    
   5  Prefactor     3.2056        1.0127         .0000       -1.5350    
   6  norm          6.5566        1.0029         .0000       -1.5196    
   7  Prefactor     7.3878        1.0023         .0000       -1.5164    
   8  Prefactor     2.2291        1.0277         .0000       -1.5409    
   9  Prefactor     8.0566        1.0019         .0000       -1.5140    
  10  Prefactor     .25868        .10817        .66429E-04   -1.5810    
  11  Prefactor     1.4720        1.0740         .0000       -1.5465    
  12  norm          2.9938        1.0147         .0000       -1.5362    
  13  Prefactor     4.3085        1.0069         .0000       -1.5293    
  14  Prefactor     4.8374        1.0054         .0000       -1.5268    
  15  norm          .10002E-03    .33633       -.70359E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1112        1.0312         .0000       -1.5417    
  17  norm          1.9176        1.0388         .0000       -1.5431    
  18  norm          8.1786        1.0019         .0000       -1.5136    
  19  norm          5.5549        1.0041         .0000       -1.5237    
  20  norm          1.8539        1.0420         .0000       -1.5436    
  21  norm          .64537E-02    .21943E-01   -.11966E-04   -1.5692    
  22  Prefactor     1.3070        1.1030         .0000       -1.5479    
  23  Prefactor     .37358        .11853       -.87050E-04   -1.5586    
  24  Prefactor     5.8511        1.0037         .0000       -1.5224    
  25  Prefactor     1499.5        1.0013        .60361E-05   -.77553    
  26  Prefactor     .10005E-03    .10965       -.57732E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.3556        1.0018         .0000       -1.5130    
  28  Prefactor     .10001E-03    .20605        .43770E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .25693        .68180E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor      .0000        .25508       -.12280E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.76352e-09
Minuit parameter uncertainties:
  1  1.00736
  2  1.00198
  3  1.03776
  4  1.04314
  5  1.01271
  6  1.00294
  7  1.00231
  8  1.02767
  9  1.00194
  10  0.108171
  11  1.07403
  12  1.01467
  13  1.0069
  14  1.00544
  15  0.000173237
  16  1.03123
  17  1.03884
  18  1.00188
  19  1.00411
  20  1.04199
  21  0.0219434
  22  1.10301
  23  0.118534
  24  1.0037
  25  1.00132
  26  0.000148613
  27  1.0018
  28  9.16772e-05
  29  6.43422e-08
  30  1.26424e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 13.4849320766

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  1.005e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  0.000e+00  1.264e-08  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.000e-02  6.434e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.7763568394e-15

TS (Fixed Index): 0.00
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.82e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107017/likelihoodResults_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.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): 101
logL (Free Index) = 13.484984158
delta logL = -5.2081414406e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 13.484984158
delta logL = -5.2081414406e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.5930       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13.48498     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.5930        1.0085        .23221         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.59305
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13.48498     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .75989        1.8978        .23221       -.50224    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.01766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107017': 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): 101
logL (Free Index) = 13.484984158
delta logL = -5.2081414406e-05

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
298        Index:  2.593e+00  1.018e+00  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:  5.230e-08  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/107017/cmap_HighResolution_551664001_551923201_4FGL_J1301.6+3336_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.82e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-06 15:17:22.502253', job_id='107017', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630966642.5', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-5.21e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1205' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:17:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 107017: <4FGL_J1301.6+3336_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1205> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 15:06:19 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:06:21 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:21 2021
Terminated at Mon Sep  6 15:17:23 2021
Results reported at Mon Sep  6 15:17:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1205 195.418 33.6097 551664001 551923201 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 :                                   318.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            664 sec.

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

