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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1435
RA = 195.418, Dec = 33.6097
tmin = 611280001, tmax = 611539201
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='108278', job_status='RUN', time_executed='2021-09-06 15:10:48.368873', time_epoch_executed='1630966248.37' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108278/ft1_4FGL_J1301.6+3336_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108278/ft2_4FGL_J1301.6+3336_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108278/ft1_4FGL_J1301.6+3336_daily_bin1435.fits outfile=/scratch/kocevski/108278/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1435.fits ra=195.418 dec=33.6097 rad=12.0 tmin=611280001.0 tmax=611539201.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.53
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108278/ft1_filtered_4FGL_J1301.6+3336_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/108278/ft2_4FGL_J1301.6+3336_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/108278/ltcube_611280001_611539201_4FGL_J1301.6+3336_daily_bin1435.fits outfile=/scratch/kocevski/108278/expmap_611280001_611539201_4FGL_J1301.6+3336_daily_bin1435.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/108278/ltcube_611280001_611539201_4FGL_J1301.6+3336_daily_bin1435.fits
.....................!
real 191.97
user 186.06
sys 5.04

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/108278/ft1_filtered_4FGL_J1301.6+3336_daily_bin1435.fits scfile=/scratch/kocevski/108278/ft2_4FGL_J1301.6+3336_daily_bin1435.fits outfile=/scratch/kocevski/108278/cmap_611280001_611539201_4FGL_J1301.6+3336_daily_bin1435.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.52
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0326       1.0000         .10000E-03   10000.    
    12 'norm      '    .36965       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89086E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5694       1.0000         .10000E-03   10000.    
    18 'norm      '    18.443       1.0000         .10000E-03   10000.    
    19 'norm      '    8.6934       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.444       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.620       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.373       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11953E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82261       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3056       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=   5828.992     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3955 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1926        .42519E-08** at limit **
   2  norm          3.5814        2.4536        .44698E-07    .97943E-03
   3  Prefactor     10.493        8.5464       -.25048E-06    .29084E-05
   4  Prefactor     .10001E-03    1.3971       -.11840E-05** at limit **
   5  Prefactor     .10000E-03    .69361       -.14750E-06** at limit **
   6  norm          3.8920        3.4329        .41089E-07   -.57473E-04
   7  Prefactor     14.272        10.567       -.13135E-06    .14245E-03
   8  Prefactor     .10000E-03    5.4539       -.93596E-06** at limit **
   9  Prefactor     .10000E-03    21.556       -.78057E-05** at limit **
  10  Prefactor     .10000E-03    1.9846        .35160E-07** at limit **
  11  Prefactor     5.0287        5.1515       -.50037E-06   -.38469E-03
  12  norm          .36844        2.3894       -.69712E-06    .29613E-04
  13  Prefactor     .10000E-03    22.624       -.17515E-04** at limit **
  14  Prefactor     .10000E-03    73.864       -.10989E-04** at limit **
  15  norm          .10000E-03    3.4125        .45175E-05** at limit **
  16  Prefactor     .10000E-03    32.468        .15729E-04** at limit **
  17  norm          7.5645        5.8004       -.44608E-06   -.29959E-03
  18  norm          18.444        17.935       -.13300E-06    .18293E-04
  19  norm          8.6901        4.5845       -.35685E-07   -.24407E-03
  20  norm          .10000E-03    3.0352        .24726E-06** at limit **
  21  norm          .10000E-03    5.8869        .78093E-06** at limit **
  22  Prefactor     .10000E-03    3.2597       -.17178E-05** at limit **
  23  Prefactor     .10000E-03    19.678        .15444E-04** at limit **
  24  Prefactor     17.449        43.814        .95187E-05   -.23763E-04
  25  Prefactor     17.621        17.876       -.79210E-06   -.11108E-03
  26  Prefactor     .10000E-03    6.0069       -.29919E-05** at limit **
  27  Prefactor     14.352        87.523       -.47111E-04   -.79397E-05
  28  Prefactor     .10001E-03    2.0226        .10391E-05** at limit **
  29  Normalizat    .82253        .17407        .18308E-05   -.23712E-03
  30  Prefactor     1.3057        .21570       -.28721E-06   -.50672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.58135
  Prefactor  = 10.4927
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 3.892
  Prefactor  = 14.2718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.02867
  norm       = 0.368437
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.56452
  norm       = 18.4443
  norm       = 8.69009
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4495
  Prefactor  = 17.621
  Prefactor  = 0.0001
  Prefactor  = 14.3524
  Prefactor  = 0.000100011
  Normalizat = 0.82253
  Prefactor  = 1.30565
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.992     FROM HESSE     STATUS=OK           592 CALLS     4547 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5814        2.3849        .93227E-04   -1.5329    
   3  Prefactor     10.493        8.5463        .12369E-03   -1.5060    
   4  Prefactor     .10001E-03    3.6281        .16908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .70135        .62030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8920        3.4298        .12907E-03   -1.5313    
   7  Prefactor     14.272        10.547        .10602E-03   -1.4952    
   8  Prefactor     .10000E-03    5.4564        .17414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9892        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0287        5.1435        .16876E-03   -1.5259    
  12  norm          .36844        8.4061        .22166E-02   -1.5587    
  13  Prefactor     .10000E-03    22.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.506        .36574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5323        .27401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5645        5.7861        .14576E-03   -1.5158    
  18  norm          18.444        17.943        .93262E-04   -1.4849    
  19  norm          8.6901        4.5558        .10999E-03   -1.5118    
  20  norm          .10000E-03    3.0373        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8888        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.3876        .26791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.449        43.745        .95896E-04   -1.4872    
  25  Prefactor     17.621        17.891        .95415E-04   -1.4868    
  26  Prefactor     .10000E-03    6.0115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.352        88.341        .10565E-03   -1.4950    
  28  Prefactor     .10001E-03    5.7076        .21007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82253        .20526        .25147E-03   -.99238    
  30  Prefactor     1.3057        .25578        .26450E-03   -.83139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.064e-09
Minuit parameter uncertainties:
  1  1.54743e-06
  2  2.38501
  3  8.54733
  4  0.000379579
  5  3.45028e-07
  6  3.43
  7  10.5483
  8  4.35138e-07
  9  2.50253e-06
  10  1.78721e-06
  11  5.14399
  12  3.51981
  13  7.26898e-08
  14  0.000446803
  15  5.58553e-05
  16  5.53359e-05
  17  5.78652
  18  17.9481
  19  4.55598
  20  1.0195e-06
  21  3.15091e-06
  22  2.20212e-05
  23  0.000120436
  24  43.8252
  25  17.896
  26  4.33513e-07
  27  71.3718
  28  0.000490097
  29  0.205452
  30  0.256027
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.468e-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:  1.306e+00  2.560e-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:  8.225e-01  2.055e-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: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/108278/likelihoodResults_611280001_611539201_4FGL_J1301.6+3336_daily_bin1435.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) = 5828.99195726
delta logL = -6.30830954833e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5828.99189447
delta logL = -2.91921423923e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11210E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7918       1.0000          .0000       10.000    
     3 'Normalizat'    .82253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3057       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=   5828.992     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      280 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    151.36        .36285E-02** at limit **
   2  Index         2.7209        7.3280        .50000        .51616E-05
   3  Normalizat    .82253        .62403E-02    .25147E-03   -.25231E-03
   4  Prefactor     1.3057        .80976E-02    .26450E-03   -.49730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101745
  Index      = 2.72089
  Normalizat = 0.82253
  Prefactor  = 1.30565
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.992     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10174E-03    715.19        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7209        6.3597        .50000       -.47330    
   3  Normalizat    .82253        .13780E-01    .10059E-04   -.99238    
   4  Prefactor     1.3057        .17881E-01    .10580E-04   -.83139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06487e-09
Minuit parameter uncertainties:
  1  0.0715229
  2  480.134
  3  0.0137802
  4  0.0178815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108278': 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) = 5828.99189428
delta logL = -1.01365003502e-07

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.017e-04  7.152e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.721e+00  4.801e+02  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.306e+00  1.788e-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:  8.225e-01  1.378e-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/108278/cmap_HighResolution_611280001_611539201_4FGL_J1301.6+3336_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-06 15:24:30.853668', job_id='108278', GAL2='1.31', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630967070.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='-1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1435' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:24:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 108278: <4FGL_J1301.6+3336_daily_bin1435> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1435> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 15:10:31 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:10:32 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:10:32 2021
Terminated at Mon Sep  6 15:24:31 2021
Results reported at Mon Sep  6 15:24:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1435 195.418 33.6097 611280001 611539201 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 :                                   815.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

