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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1311
RA = 195.418, Dec = 33.6097
tmin = 579139201, tmax = 579398401
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='107185', job_status='RUN', time_executed='2021-09-06 15:06:50.464366', time_epoch_executed='1630966010.46' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107185/ft1_4FGL_J1301.6+3336_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107185/ft2_4FGL_J1301.6+3336_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107185/ft1_4FGL_J1301.6+3336_daily_bin1311.fits outfile=/scratch/kocevski/107185/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1311.fits ra=195.418 dec=33.6097 rad=12.0 tmin=579139201.0 tmax=579398401.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.55
user 3.30
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107185/ft1_filtered_4FGL_J1301.6+3336_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/107185/ft2_4FGL_J1301.6+3336_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/107185/ltcube_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.fits outfile=/scratch/kocevski/107185/expmap_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.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/107185/ltcube_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.fits
.....................!
real 190.66
user 185.12
sys 4.77

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/107185/ft1_filtered_4FGL_J1301.6+3336_daily_bin1311.fits scfile=/scratch/kocevski/107185/ft2_4FGL_J1301.6+3336_daily_bin1311.fits outfile=/scratch/kocevski/107185/cmap_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.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/107185/ft1_filtered_4FGL_J1301.6+3336_daily_bin1311.fits scfile=/scratch/kocevski/107185/ft2_4FGL_J1301.6+3336_daily_bin1311.fits outfile=/scratch/kocevski/107185/cmap_HighResolution_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.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.67
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0246       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1809       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9729       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    96.118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11476       1.0000         .10000E-03   10000.    
    12 'norm      '    .67738E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    75.722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.182       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3714       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0869       1.0000         .10000E-03   10000.    
    18 'norm      '    9.8561       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0692       1.0000         .10000E-03   10000.    
    20 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14147E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .59885       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4951       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .61882       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4465       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=   6059.600     FROM MIGRAD    STATUS=CONVERGED   1401 CALLS     4648 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0023        31.069        .15136E-03    .49572E-04
   2  norm          5.2166        3.2234        .96503E-04    .40526E-04
   3  Prefactor     2.1798        4.3477        .22317E-03    .10907E-03
   4  Prefactor     5.7256        2.8844        .82490E-04   -.73044E-05
   5  Prefactor     1.9725        1.6236        .86977E-04    .30194E-04
   6  norm          5.5175        3.9481        .12687E-03    .10574E-03
   7  Prefactor     9.1690        6.8659        .13235E-03   -.23021E-04
   8  Prefactor     .10000E-03    4.1692        .15523E-02** at limit **
   9  Prefactor     96.066        86.340        .20499E-03   -.84854E-04
  10  Prefactor     .10000E-03    2.5182        .12041E-02** at limit **
  11  Prefactor     .87409E-01    8.1921        .51768E-01    .28521E-03
  12  norm          .10427E-03    8.1903        .40922E-01** at limit **
  13  Prefactor     75.681        65.077        .23072E-03    .11077E-03
  14  Prefactor     27.189        32.171        .76840E-04   -.27561E-03
  15  norm          2.2165        2.4888        .12683E-03    .79420E-04
  16  Prefactor     7.3984        15.604        .14773E-03    .32592E-03
  17  norm          5.0883        4.3939        .14372E-03    .24278E-03
  18  norm          9.8495        17.383        .12764E-03    .18526E-04
  19  norm          3.0709        4.5367        .17121E-03   -.36854E-04
  20  norm          .10000E-03    3.9289        .15003E-02** at limit **
  21  norm          .10000E-03    13.820        .18142E-02** at limit **
  22  Prefactor     .10004E-03    16.377        .17787E-02** at limit **
  23  Prefactor     .10000E-03    7.7833        .18142E-02** at limit **
  24  Prefactor     .10000E-03    18.293        .18142E-02** at limit **
  25  Prefactor     .10000E-03    21.008        .18142E-02** at limit **
  26  Prefactor     .38295        232.88        .58168E-02   -.17152E-03
  27  Prefactor     .10000E-03    25.893        .18142E-02** at limit **
  28  Prefactor     3.4953        3.1030        .12524E-03    .21060E-04
  29  Normalizat    .61897        .18946        .27709E-03    .20445E-03
  30  Prefactor     1.4467        .24087        .24852E-03   -.72581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00232
  norm       = 5.21658
  Prefactor  = 2.17979
  Prefactor  = 5.72558
  Prefactor  = 1.97251
  norm       = 5.51752
  Prefactor  = 9.16901
  Prefactor  = 0.0001
  Prefactor  = 96.0664
  Prefactor  = 0.0001
  Prefactor  = 0.0874087
  norm       = 0.00010427
  Prefactor  = 75.6812
  Prefactor  = 27.1888
  norm       = 2.21653
  Prefactor  = 7.39837
  norm       = 5.08827
  norm       = 9.84949
  norm       = 3.07089
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.38295
  Prefactor  = 0.0001
  Prefactor  = 3.49527
  Normalizat = 0.61897
  Prefactor  = 1.44674
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.600     FROM HESSE     STATUS=OK           580 CALLS     5228 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0023        31.047        .60544E-05   -1.5179    
   2  norm          5.2166        3.2238        .38601E-05   -1.5251    
   3  Prefactor     2.1798        4.3471        .89269E-05   -1.5413    
   4  Prefactor     5.7256        2.8848        .32996E-05   -1.5229    
   5  Prefactor     1.9725        1.6235        .34791E-05   -1.5427    
   6  norm          5.5175        3.9479        .50746E-05   -1.5238    
   7  Prefactor     9.1690        6.8655        .52940E-05   -1.5102    
   8  Prefactor     .10000E-03    4.1692        .31046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     96.066        86.188        .81996E-05   -1.3745    
  10  Prefactor     .10000E-03    2.5184        .24083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .87409E-01    7.8312        .53148E-01   -1.5649    
  12  norm          .10427E-03    6.3102        .48420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     75.681        65.051        .92287E-05   -1.3966    
  14  Prefactor     27.189        32.058        .15368E-04   -1.4665    
  15  norm          2.2165        2.4887        .50731E-05   -1.5410    
  16  Prefactor     7.3984        15.558        .59090E-05   -1.5164    
  17  norm          5.0883        4.3928        .57486E-05   -1.5257    
  18  norm          9.8495        17.381        .51056E-05   -1.5080    
  19  norm          3.0709        4.5329        .68482E-05   -1.5357    
  20  norm          .10000E-03    3.9291        .30005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    16.612        .35573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.7843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .38295        239.02        .23267E-02   -1.5584    
  27  Prefactor     .10000E-03    25.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.4953        3.1028        .50097E-05   -1.5334    
  29  Normalizat    .61897        .18915        .11084E-04   -1.0718    
  30  Prefactor     1.4467        .24103        .49703E-04   -.79042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87923e-09
Minuit parameter uncertainties:
  1  29.5143
  2  3.22392
  3  4.34776
  4  2.88486
  5  1.62352
  6  3.94813
  7  6.86613
  8  2.97248e-06
  9  86.301
  10  3.18295e-06
  11  1.65399
  12  0.0103826
  13  65.1118
  14  32.0778
  15  2.48883
  16  15.5668
  17  4.3931
  18  17.3897
  19  4.53336
  20  2.20912e-05
  21  1.00542e-05
  22  0.00158826
  23  2.11999e-05
  24  1.59788e-05
  25  2.56098e-05
  26  19.2094
  27  3.372e-05
  28  3.10299
  29  0.189349
  30  0.24122
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.719e+01  3.208e+01  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.447e+00  2.412e-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:  6.190e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 4.97e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.31e-05

TS (Fixed Index): 1.41
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107185/likelihoodResults_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.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): 0
logL (Free Index) = 6058.10002279
delta logL = 1.49954706725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6058.02718001
delta logL = 1.57238984427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70792       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0909       1.0000          .0000       10.000    
     3 'Normalizat'    .55164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5118       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=   6058.027     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      290 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70578        5.8659        .78593E-02    .33363E-03
   2  Index         5.0930        2.5319        .96689E-01    .12529E-03
   3  Normalizat    .55161        .47419E-01    .65937E-01    .15972E-04
   4  Prefactor     1.5117        .62544E-01    .55179E-01   -.15932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.705776
  Index      = 5.09296
  Normalizat = 0.551608
  Prefactor  = 1.51174
 **********
 **   18 **HESSE 
 **********

 FCN=   6058.027     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      323 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70578        11.047        .35452E-04   -1.5540    
   2  Index         5.0930        3.6569        .38855E-02    .18593E-01
   3  Normalizat    .55161        .16243        .29181E-03   -1.1008    
   4  Prefactor     1.5117        .21161        .24396E-03   -.77212    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76731e-07
Minuit parameter uncertainties:
  1  5.58546
  2  4.10189
  3  0.162571
  4  0.211737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107185': 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) = 6058.02717769
delta logL = 1.57239216341

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  7.058e-01  5.585e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  5.093e+00  4.102e+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:  1.512e+00  2.117e-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:  5.516e-01  1.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 195.418 33.610
Photon Index (Free Index): 5.09 +/- 4.10
Photon Flux (Free Index): 8.67e-08 +/- 5.02e-08
Energy Flux (Free Index): 1.14e-05 +/- 8.56e-06

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/107185/cmap_HighResolution_579139201_579398401_4FGL_J1301.6+3336_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.76e-03', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.14e-05', photon_flux_error='4.97e-08', dlogl='1.57e+00', energy_flux='1.11e-05', photon_flux2='8.67e-08', job_status='DONE', time_completed='2021-09-06 15:21:30.910572', photon_index_error2='4.10', photon_index2='5.09', ts='1.41', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='8.56e-06', EG='0.62', time_epoch_completed='1630966890.91', return_code='0', job_id='107185', GAL2='1.51', EG2='0.55', return_code2='102', energy_flux_error='1.31e-05', photon_flux_error2='5.02e-08', ts2='4.85', photon_index='2.59' WHERE bin_id='1311' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 107185: <4FGL_J1301.6+3336_daily_bin1311> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin1311> 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) <bullet0264>, 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:21:31 2021
Results reported at Mon Sep  6 15:21:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1311 195.418 33.6097 579139201 579398401 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 :                                   873.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

