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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin1215
RA = 195.418, Dec = 33.6097
tmin = 554256001, tmax = 554515201
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='107033', job_status='RUN', time_executed='2021-09-06 15:09:49.860372', time_epoch_executed='1630966189.86' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107033/ft1_4FGL_J1301.6+3336_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107033/ft2_4FGL_J1301.6+3336_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107033/ft1_4FGL_J1301.6+3336_daily_bin1215.fits outfile=/scratch/kocevski/107033/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin1215.fits ra=195.418 dec=33.6097 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.05
user 3.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107033/ft1_filtered_4FGL_J1301.6+3336_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/107033/ft2_4FGL_J1301.6+3336_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/107033/ltcube_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.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/107033/ft2_4FGL_J1301.6+3336_daily_bin1215.fits
.....................!
real 11.91
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107033/ft1_filtered_4FGL_J1301.6+3336_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/107033/ft2_4FGL_J1301.6+3336_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/107033/ltcube_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.fits outfile=/scratch/kocevski/107033/expmap_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.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/107033/ltcube_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.fits
.....................!
real 191.51
user 185.77
sys 5.18

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/107033/ft1_filtered_4FGL_J1301.6+3336_daily_bin1215.fits scfile=/scratch/kocevski/107033/ft2_4FGL_J1301.6+3336_daily_bin1215.fits outfile=/scratch/kocevski/107033/cmap_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107033/ft1_filtered_4FGL_J1301.6+3336_daily_bin1215.fits scfile=/scratch/kocevski/107033/ft2_4FGL_J1301.6+3336_daily_bin1215.fits outfile=/scratch/kocevski/107033/cmap_HighResolution_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8958       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.5808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21634E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4982       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0054       1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    24.801       1.0000         .10000E-03   10000.    
    19 'norm      '    10.664       1.0000         .10000E-03   10000.    
    20 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8859       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .98585E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.124       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    167.67       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.5574       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1387       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62867       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=   3243.683     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3908 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.753        .34625E-07** at limit **
   2  norm          2.8962        2.7230        .16189E-08    .81321E-05
   3  Prefactor     14.996        12.006        .50640E-07   -.58115E-05
   4  Prefactor     3.0800        2.5097        .58491E-08   -.41866E-05
   5  Prefactor     .10000E-03    2.3195        .10019E-07** at limit **
   6  norm          3.5578        4.8716        .25254E-05   -.19013E-03
   7  Prefactor     25.807        18.114       -.28361E-06   -.16476E-04
   8  Prefactor     .10000E-03    18.595       -.13262E-06** at limit **
   9  Prefactor     .10000E-03    80.636       -.82290E-06** at limit **
  10  Prefactor     .10000E-03    1.9789        .19838E-07** at limit **
  11  Prefactor     .10000E-03    3.6450       -.18351E-07** at limit **
  12  norm          9.5940        9.6007        .26038E-05   -.12412E-03
  13  Prefactor     .10004E-03    425.33       -.65377E-05** at limit **
  14  Prefactor     .10000E-03    132.88       -.67624E-06** at limit **
  15  norm          1.4997        3.6373        .64077E-06   -.13062E-04
  16  Prefactor     1.0074        20.098        .52292E-07   -.36701E-04
  17  norm          .10000E-03    6.9059       -.51009E-08** at limit **
  18  norm          24.706        34.803       -.91554E-06   -.72836E-04
  19  norm          10.658        7.8079       -.20200E-06   -.14867E-04
  20  norm          .10000E-03    11.394        .10068E-06** at limit **
  21  norm          .10000E-03    16.605        .17984E-06** at limit **
  22  Prefactor     7.8722        7.0008        .21953E-06   -.24905E-04
  23  Prefactor     .10000E-03    25.145        .10487E-06** at limit **
  24  Prefactor     .10000E-03    202.54       -.31184E-06** at limit **
  25  Prefactor     16.128        19.247        .34313E-06    .14474E-05
  26  Prefactor     .10000E-03    16.059        .25092E-06** at limit **
  27  Prefactor     167.57        162.55       -.99651E-06   -.90660E-04
  28  Prefactor     5.5578        6.8573        .45760E-06    .14855E-03
  29  Normalizat    1.1389        .26192        .38367E-06   -.51342E-04
  30  Prefactor     .62815        .28295       -.33780E-05   -.58808E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.89619
  Prefactor  = 14.9964
  Prefactor  = 3.08004
  Prefactor  = 0.0001
  norm       = 3.55784
  Prefactor  = 25.8074
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.59396
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  norm       = 1.49967
  Prefactor  = 1.00742
  norm       = 0.0001
  norm       = 24.7064
  norm       = 10.6582
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.87216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1278
  Prefactor  = 0.0001
  Prefactor  = 167.569
  Prefactor  = 5.55781
  Normalizat = 1.13891
  Prefactor  = 0.628154
 **********
 **   18 **HESSE 
 **********

 FCN=   3243.683     FROM HESSE     STATUS=OK           588 CALLS     4496 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8962        2.7278        .87453E-04   -1.5368    
   3  Prefactor     14.996        12.011        .10343E-03   -1.4933    
   4  Prefactor     3.0800        2.5097        .77981E-04   -1.5357    
   5  Prefactor     .10000E-03    2.4135        .16872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5578        4.8662        .70290E-03   -1.5331    
   7  Prefactor     25.807        18.097        .78863E-04   -1.4692    
   8  Prefactor     .10000E-03    18.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    80.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9799        .78244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6464        .10619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.5940        9.6520        .64734E-03   -1.5088    
  13  Prefactor     .10004E-03    426.19        .20157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    134.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4997        3.5992        .15807E-03   -1.5463    
  16  Prefactor     1.0074        110.79        .48678E-02   -1.5507    
  17  norm          .10000E-03    6.9580        .14596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.706        34.803        .80436E-04   -1.4713    
  19  norm          10.658        7.7567        .11957E-03   -1.5055    
  20  norm          .10000E-03    11.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    16.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.8722        6.9897        .12763E-03   -1.5147    
  23  Prefactor     .10000E-03    25.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    203.43        .20772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.128        19.248        .99742E-04   -1.4905    
  26  Prefactor     .10000E-03    16.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     167.57        163.03        .15577E-03   -1.3112    
  28  Prefactor     5.5578        6.8705        .15556E-03   -1.5236    
  29  Normalizat    1.1389        .31449        .23724E-03   -.88512    
  30  Prefactor     .62815        .33364        .34588E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08449e-08
Minuit parameter uncertainties:
  1  2.41849e-06
  2  2.72796
  3  12.0134
  4  2.5098
  5  1.22089e-06
  6  4.86678
  7  18.1006
  8  6.00286e-05
  9  0.000620704
  10  4.52009e-07
  11  1.81234e-06
  12  9.65361
  13  0.00855225
  14  0.000319116
  15  3.59972
  16  21.1682
  17  3.70837e-06
  18  34.832
  19  7.75748
  20  2.15633e-05
  21  3.0528e-05
  22  6.99039
  23  1.62808e-05
  24  0.000491642
  25  19.2554
  26  1.69865e-05
  27  163.469
  28  6.87146
  29  0.315013
  30  0.334704
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.191e-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:  6.282e-01  3.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.139e+00  3.150e-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: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107033/likelihoodResults_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.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) = 3243.68289363
delta logL = -3.51802059413e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3243.68285846
delta logL = -1.78961272468e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7647       1.0000          .0000       10.000    
     3 'Normalizat'    1.1389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62816       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=   3243.683     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      253 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.28        .90712E-02** at limit **
   2  Index         2.7488        6.4860        .50000        .80088E-06
   3  Normalizat    1.1389        .52439E-02    .53656E-01    .19245E-04
   4  Prefactor     .62815        .58650E-02    .78112E-01    .22711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.74882
  Normalizat = 1.13891
  Prefactor  = 0.628153
 **********
 **   18 **HESSE 
 **********

 FCN=   3243.683     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6216.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7488        5.4896        .50000       -.46703    
   3  Normalizat    1.1389        .26490E-01    .23724E-03   -.88512    
   4  Prefactor     .62815        .29573E-01    .34589E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66404e-08
Minuit parameter uncertainties:
  1  0.00201993
  2  758.444
  3  0.0264898
  4  0.0295733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107033': 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) = 3243.68285843
delta logL = 1.88042577065e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.020e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.749e+00  7.584e+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:  6.282e-01  2.957e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.139e+00  2.649e-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/107033/cmap_HighResolution_554256001_554515201_4FGL_J1301.6+3336_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-06 15:21:33.493106', job_id='107033', GAL2='0.63', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630966893.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1215' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:21:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 107033: <4FGL_J1301.6+3336_daily_bin1215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin1215 195.418 33.6097 554256001 554515201 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 :                                   571.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

