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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin176
RA = 195.418, Dec = 33.6097
tmin = 284947201, tmax = 285206401
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='101198', job_status='RUN', time_executed='2021-09-06 14:50:49.818627', time_epoch_executed='1630965049.82' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101198/ft1_4FGL_J1301.6+3336_daily_bin176.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101198/ft1_filtered_4FGL_J1301.6+3336_daily_bin176.fits" evtable="EVENTS" scfile=/scratch/kocevski/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits sctable="SC_DATA" outfile=/scratch/kocevski/101198/ltcube_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.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/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits
.....................!
real 12.10
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101198/ft1_filtered_4FGL_J1301.6+3336_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/101198/ltcube_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.fits outfile=/scratch/kocevski/101198/expmap_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.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/101198/ltcube_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.fits
.....................!
real 189.86
user 185.21
sys 4.02

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/101198/ft1_filtered_4FGL_J1301.6+3336_daily_bin176.fits scfile=/scratch/kocevski/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits outfile=/scratch/kocevski/101198/cmap_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.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/101198/ft1_filtered_4FGL_J1301.6+3336_daily_bin176.fits scfile=/scratch/kocevski/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits outfile=/scratch/kocevski/101198/cmap_HighResolution_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.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/101198/ft1_filtered_4FGL_J1301.6+3336_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/101198/ft2_4FGL_J1301.6+3336_daily_bin176.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101198/Model_4FGL_J1301.6+3336_daily_bin176.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/101198/ft1_filtered_4FGL_J1301.6+3336_daily_bin176.fits.....................!
real 48.02
user 46.68
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73114E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .82262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6730       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    111.34       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.780       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4710       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.001       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.455       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4783       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.608       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .65240E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    66.771       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71335       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2426       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=   5793.001     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     3957 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.255       -.18127E-05** at limit **
   2  norm          .10000E-03    .74686       -.37122E-07** at limit **
   3  Prefactor     .10054E-03    5.6254        .29324E-06** at limit **
   4  Prefactor     .82253        1.1733        .91291E-07    .35707E-03
   5  Prefactor     3.6730        2.2957        .63436E-07   -.76362E-04
   6  norm          1.2963        3.6315       -.23397E-05   -.90709E-03
   7  Prefactor     50.289        16.046       -.82882E-06    .36342E-04
   8  Prefactor     15.759        17.687       -.12252E-05   -.44773E-05
   9  Prefactor     111.33        87.746       -.60222E-05    .10372E-04
  10  Prefactor     12.780        9.0971        .36389E-05   -.81389E-05
  11  Prefactor     .10000E-03    1.7200       -.93484E-08** at limit **
  12  norm          .10000E-03    1.7032        .16123E-07** at limit **
  13  Prefactor     76.433        54.026       -.77219E-05    .47464E-05
  14  Prefactor     5.4652        21.434       -.85521E-06   -.95194E-05
  15  norm          .10000E-03    .98937       -.70794E-07** at limit **
  16  Prefactor     13.999        13.533       -.66776E-05   -.11075E-04
  17  norm          .10000E-03    3.0729        .19793E-06** at limit **
  18  norm          18.455        13.599       -.32413E-05    .49096E-05
  19  norm          2.4788        3.2763       -.43038E-06   -.34016E-03
  20  norm          .10000E-03    4.2826        .10603E-06** at limit **
  21  norm          .10000E-03    4.7583        .79753E-07** at limit **
  22  Prefactor     .10000E-03    2.2499       -.21419E-06** at limit **
  23  Prefactor     35.620        17.748        .23122E-05    .14587E-03
  24  Prefactor     .10000E-03    15.822       -.34975E-06** at limit **
  25  Prefactor     .10001E-03    14.995       -.14191E-05** at limit **
  26  Prefactor     .10000E-03    7.5485        .30751E-07** at limit **
  27  Prefactor     66.768        59.047       -.39510E-05    .90331E-05
  28  Prefactor     .10000E-03    .96312       -.66474E-07** at limit **
  29  Normalizat    .71336        .17621        .19221E-05    .87854E-04
  30  Prefactor     1.2427        .20895        .27886E-06    .11797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100542
  Prefactor  = 0.822529
  Prefactor  = 3.67297
  norm       = 1.29631
  Prefactor  = 50.2892
  Prefactor  = 15.7592
  Prefactor  = 111.334
  Prefactor  = 12.7795
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.4331
  Prefactor  = 5.46519
  norm       = 0.0001
  Prefactor  = 13.9986
  norm       = 0.0001
  norm       = 18.4554
  norm       = 2.47877
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6201
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 66.7683
  Prefactor  = 0.0001
  Normalizat = 0.71336
  Prefactor  = 1.24266
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.001     FROM HESSE     STATUS=OK           594 CALLS     4551 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .74910        .64208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10054E-03    119.17        .34076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82253        1.0090        .95603E-03   -1.5527    
   5  Prefactor     3.6730        2.2877        .86740E-04   -1.5325    
   6  norm          1.2963        3.6813        .23983E-03   -1.5480    
   7  Prefactor     50.289        16.022        .56551E-04   -1.4288    
   8  Prefactor     15.759        17.689        .10089E-03   -1.4914    
   9  Prefactor     111.33        87.663        .38121E-04   -1.3594    
  10  Prefactor     12.780        9.0497        .11205E-03   -1.4993    
  11  Prefactor     .10000E-03    1.7216        .97460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7063        .96880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     76.433        53.955        .45926E-04   -1.3957    
  14  Prefactor     5.4652        21.313        .17179E-03   -1.5240    
  15  norm          .10000E-03    .99266        .73932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.999        13.480        .10704E-03   -1.4959    
  17  norm          .10000E-03    3.1095        .13018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.455        13.580        .93231E-04   -1.4849    
  19  norm          2.4788        3.2203        .14338E-03   -1.5393    
  20  norm          .10000E-03    4.3007        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.7589        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.2898        .22116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.620        17.634        .67159E-04   -1.4514    
  24  Prefactor     .10000E-03    15.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    19.167        .79590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.5547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     66.768        59.057        .49117E-04   -1.4072    
  28  Prefactor     .10000E-03    .96527        .72942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .71336        .20405        .26391E-03   -1.0337    
  30  Prefactor     1.2427        .24545        .26115E-03   -.85028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35692e-09
Minuit parameter uncertainties:
  1  9.23208e-05
  2  6.07638e-07
  3  0.0161058
  4  1.00902
  5  2.28771
  6  3.68195
  7  16.0236
  8  17.695
  9  87.7653
  10  9.0507
  11  1.36544e-05
  12  9.8602e-06
  13  53.9892
  14  21.3428
  15  3.47945e-06
  16  13.4829
  17  5.21792e-05
  18  13.5826
  19  3.22055
  20  7.7258e-06
  21  2.12526e-06
  22  2.8578e-05
  23  17.6369
  24  1.27793e-05
  25  0.000688698
  26  4.82457e-06
  27  59.1084
  28  1.3053e-06
  29  0.204263
  30  0.24568
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  5.465e+00  2.134e+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.243e+00  2.457e-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:  7.134e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 8.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101198/likelihoodResults_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.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) = 5792.10662984
delta logL = 0.894800144894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5792.09153289
delta logL = 0.909897090807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40699       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1854       1.0000          .0000       10.000    
     3 'Normalizat'    .64497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2992       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=   5792.092     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      275 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40671        5.0010        .86820E-02    .11562E-02
   2  Index         5.1859        2.7054        .14393        .11818E-03
   3  Normalizat    .64502        .37082E-01    .62463E-01    .18373E-04
   4  Prefactor     1.2991        .47216E-01    .57929E-01   -.27428E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.406712
  Index      = 5.18587
  Normalizat = 0.645016
  Prefactor  = 1.29911
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.092     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      310 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40671        13.810        .39819E-03   -1.5580    
   2  Index         5.1859        7.4250        .50921E-02    .37182E-01
   3  Normalizat    .64502        .14897        .27634E-03   -1.0611    
   4  Prefactor     1.2991        .18730        .25615E-03   -.83333    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.84739e-08
Minuit parameter uncertainties:
  1  4.74054
  2  6.19229
  3  0.14906
  4  0.187392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101198': 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) = 5792.09153278
delta logL = 0.909897195929

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.067e-01  4.741e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  5.186e+00  6.192e+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.299e+00  1.874e-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.450e-01  1.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 195.418 33.610
Photon Index (Free Index): 5.19 +/- 6.19
Photon Flux (Free Index): 5.95e-08 +/- 4.73e-08
Energy Flux (Free Index): 7.80e-06 +/- 7.01e-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/101198/cmap_HighResolution_284947201_285206401_4FGL_J1301.6+3336_daily_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', comment='SUCCESS', energy_flux2='7.80e-06', dlogl='9.10e-01', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-09-06 15:04:22.957997', photon_index_error2='6.19', photon_index2='5.19', ts='0.08', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='8.64e-08', energy_flux_error2='7.01e-06', EG='0.71', time_epoch_completed='1630965862.96', return_code='0', job_id='101198', GAL2='1.30', EG2='0.65', return_code2='102', photon_flux_error2='4.73e-08', ts2='2.03', photon_index='2.59' WHERE bin_id='176' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:04:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 101198: <4FGL_J1301.6+3336_daily_bin176> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin176> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 14:50:34 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:50:35 2021
Terminated at Mon Sep  6 15:04:23 2021
Results reported at Mon Sep  6 15:04:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin176 195.418 33.6097 284947201 285206401 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 :                                   808.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

