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


Performing analysis on: 4FGL_J1615.6+4712_daily_bin658
RA = 243.922, Dec = 47.2028
tmin = 409881601, tmax = 410140801
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='203801', job_status='RUN', time_executed='2021-09-13 18:34:39.496107', time_epoch_executed='1631583279.5' WHERE source_name='4FGL J1615.6+4712' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203801

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203801/ft1_4FGL_J1615.6+4712_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203801/ft1_4FGL_J1615.6+4712_daily_bin658.fits outfile=/scratch/kocevski/203801/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin658.fits ra=243.922 dec=47.2028 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.34
user 6.06
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.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/203801/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/203801/ltcube_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.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/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits
.....................!
real 14.78
user 14.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/203801/ltcube_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.fits outfile=/scratch/kocevski/203801/expmap_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.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/203801/ltcube_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.fits
.....................!
real 192.50
user 186.81
sys 5.21

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1615.6+4712 @ 243.922 47.2028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits scfile=/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits outfile=/scratch/kocevski/203801/cmap_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.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=243.922 yref=47.2028 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits scfile=/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits outfile=/scratch/kocevski/203801/cmap_HighResolution_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.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=243.922 yref=47.2028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/203801/Model_4FGL_J1615.6+4712_daily_bin658.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/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits.....................!
real 33.70
user 32.40
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits', '/scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits', expMap='/scratch/kocevski/203801/expmap_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.fits', expCube='/scratch/kocevski/203801/ltcube_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203801/Model_4FGL_J1615.6+4712_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1615.6+4712'

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.421e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/203801/ft1_filtered_4FGL_J1615.6+4712_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/203801/ft2_4FGL_J1615.6+4712_daily_bin658.fits
Exposure map: /scratch/kocevski/203801/expmap_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.fits
Exposure cube: /scratch/kocevski/203801/ltcube_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203801/Model_4FGL_J1615.6+4712_daily_bin658.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) = 3180.75152452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.388       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12035E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    30.516       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0646       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10442E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9354       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.555       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0699       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.7336       1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.042       1.0000         .10000E-03   10000.    
    26 'norm      '    7.4969       1.0000         .10000E-03   10000.    
    27 'norm      '    2.6016       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1364       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .56014       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .73385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3180.356     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4294 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.389        7.1371       -.10018E-06    .65942E-04
   2  Prefactor     .10000E-03    7.1862       -.12722E-05** at limit **
   3  Prefactor     .10000E-03    9.8529       -.33449E-05** at limit **
   4  Prefactor     .10000E-03    8.5538        .14751E-05** at limit **
   5  norm          .10000E-03    14.754       -.68209E-06** at limit **
   6  Prefactor     .10001E-03    231.11       -.42799E-04** at limit **
   7  Prefactor     .10000E-03    21.641       -.59125E-05** at limit **
   8  norm          30.516        25.044       -.75784E-06    .97263E-04
   9  Prefactor     .10000E-03    74.954       -.78511E-05** at limit **
  10  Prefactor     24.339        18.724        .14404E-05    .17102E-03
  11  Prefactor     4.0848        180.02       -.17321E-04   -.42597E-04
  12  Prefactor     26.300        21.851        .55603E-07    .69871E-04
  13  Prefactor     .10000E-03    3.0440       -.54369E-06** at limit **
  14  norm          .10000E-03    41.935       -.43519E-05** at limit **
  15  norm          1.9353        .31741        .48206E-07    .16221E-02
  16  norm          .10000E-03    7.2843        .81079E-06** at limit **
  17  Prefactor     .10000E-03    27.129        .33481E-05** at limit **
  18  Prefactor     8.5531        9.0891       -.44018E-05    .40880E-03
  19  Prefactor     42.552        25.288        .13111E-06    .24377E-04
  20  norm          .10000E-03    29.407        .59411E-05** at limit **
  21  Prefactor     .10000E-03    1.0685       -.23390E-06** at limit **
  22  Prefactor     1.0701        1.6010       -.65732E-08    .68838E-03
  23  Prefactor     .10000E-03    5.8123        .13439E-05** at limit **
  24  Prefactor     6.7335        4.8762       -.15771E-07   -.41429E-05
  25  Prefactor     27.035        34.853        .19357E-05    .27554E-04
  26  norm          7.4968        2.5066        .70688E-07    .14082E-03
  27  norm          2.6016        1.8202        .31800E-06   -.17197E-03
  28  Prefactor     .10000E-03    11.952        .30754E-05** at limit **
  29  norm          1.1369        1.3115       -.23166E-08   -.18246E-03
  30  Normalizat    .56034        .27839        .85573E-06    .45746E-04
  31  Prefactor     .73369        .25198        .73320E-07    .66399E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 30.5161
  Prefactor  = 0.000100001
  Prefactor  = 24.3393
  Prefactor  = 4.08479
  Prefactor  = 26.3
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.93529
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.55308
  Prefactor  = 42.5515
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.07008
  Prefactor  = 0.0001
  Prefactor  = 6.73347
  Prefactor  = 27.0347
  norm       = 7.49679
  norm       = 2.60165
  Prefactor  = 0.0001
  norm       = 1.13686
  Normalizat = 0.560338
  Prefactor  = 0.733686
 **********
 **   18 **HESSE 
 **********

 FCN=   3180.356     FROM HESSE     STATUS=OK           620 CALLS     4914 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.389        7.1362        .11477E-03   -1.5033    
   2  Prefactor     .10000E-03    7.1979        .14763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9016        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5776        .16119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    225.62        .64008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          30.516        25.010        .72530E-04   -1.4603    
   9  Prefactor     .10000E-03    75.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.339        18.489        .81195E-04   -1.4721    
  11  Prefactor     4.0848        177.87        .19999E-03   -1.5304    
  12  Prefactor     26.300        21.846        .78102E-04   -1.4682    
  13  Prefactor     .10000E-03    3.0847        .95986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    42.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9353        .31354        .11535E-04   -1.5430    
  16  norm          .10000E-03    7.2889        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5531        9.2562        .68531E-03   -1.5123    
  19  Prefactor     42.552        25.276        .61453E-04   -1.4402    
  20  norm          .10000E-03    29.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3155        .10131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0701        1.4226        .73152E-04   -1.5501    
  23  Prefactor     .10000E-03    5.8674        .13271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.7335        4.8525        .99079E-04   -1.5189    
  25  Prefactor     27.035        34.738        .77037E-04   -1.4668    
  26  norm          7.4968        2.5041        .49456E-04   -1.5160    
  27  norm          2.6016        1.8138        .59951E-04   -1.5385    
  28  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1369        1.2807        .64358E-04   -1.5495    
  30  Normalizat    .56034        .32719        .34588E-03   -1.0970    
  31  Prefactor     .73369        .30079        .27896E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20243e-10
Minuit parameter uncertainties:
  1  7.1367
  2  2.97412e-05
  3  0.000104175
  4  4.95822e-05
  5  2.33663e-05
  6  0.00309783
  7  0.000228716
  8  25.0185
  9  0.00065686
  10  18.493
  11  54.0812
  12  21.8525
  13  8.97794e-06
  14  0.000334251
  15  0.31354
  16  2.64127e-05
  17  0.000133856
  18  9.25776
  19  25.2826
  20  0.000349886
  21  1.35147e-05
  22  1.42266
  23  3.59026e-05
  24  4.85276
  25  34.764
  26  2.50411
  27  1.81384
  28  0.000103775
  29  1.28078
  30  0.328321
  31  0.30146
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  2.434e+01  1.849e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  7.337e-01  3.015e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  5.603e-01  3.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.84
Ra Dec: 243.922 47.203
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 8.30e-08
Energy Flux (Fixed Index): 5.01e-05 +/- 3.81e-05

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) = 3179.70380602
delta logL = 0.652543793822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3179.70375966
delta logL = 0.652590150754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.567       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6467       1.0000          .0000       10.000    
     3 'Normalizat'    .59858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3179.704     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.569        20.969        .30259E-05   -.10437E-02
   2  Index         1.6466        .37035       -.71254E-05   -.44698E-03
   3  Normalizat    .59865        .26689        .61565E-06   -.93312E-05
   4  Prefactor     .70868        .24519       -.29775E-06   -.48833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.5686
  Index      = 1.64664
  Normalizat = 0.598648
  Prefactor  = 0.708682
 **********
 **   18 **HESSE 
 **********

 FCN=   3179.704     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.569        22.194        .65390E-04   -1.4481    
   2  Index         1.6466        .42789        .56864E-02   -.73511    
   3  Normalizat    .59865        .31810        .33523E-03   -1.0804    
   4  Prefactor     .70868        .29293        .28308E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36527e-09
Minuit parameter uncertainties:
  1  22.199
  2  0.428847
  3  0.319074
  4  0.293573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203801': 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): 0
logL (Free Index) = 3179.70375963
delta logL = 0.652590180662

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  3.757e+01  2.220e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.647e+00  4.288e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  7.087e-01  2.936e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  5.986e-01  3.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.07
Ra Dec: 243.922 47.203
Photon Index (Free Index): 1.65 +/- 0.43
Photon Flux (Free Index): 6.47e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.25e-04 +/- 1.36e-04

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/203801/cmap_HighResolution_409881601_410140801_4FGL_J1615.6+4712_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='1.25e-04', photon_flux_error='8.30e-08', dlogl='6.53e-01', energy_flux='5.01e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-13 18:45:07.299089', photon_index_error2='0.43', photon_index2='1.65', ts='10.84', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.36e-04', EG='0.56', time_epoch_completed='1631583907.3', return_code='0', job_id='203801', GAL2='0.71', EG2='0.60', return_code2='0', energy_flux_error='3.81e-05', photon_flux_error2='4.91e-08', ts2='12.07', photon_index='2.19' WHERE bin_id='658' AND source_name='4FGL J1615.6+4712' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:45:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 203801: <4FGL_J1615.6+4712_daily_bin658> in cluster <slac> Done

Job <4FGL_J1615.6+4712_daily_bin658> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 13 18:30:51 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 18:34:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 18:34:24 2021
Terminated at Mon Sep 13 18:45:08 2021
Results reported at Mon Sep 13 18:45:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+4712_daily_bin658 243.922 47.2028 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1615.6+4712 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            857 sec.

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

