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


Performing analysis on: 4FGL_J1615.6+4712_daily_bin728
RA = 243.922, Dec = 47.2028
tmin = 428025601, tmax = 428284801
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='204977', job_status='RUN', time_executed='2021-09-13 18:39:45.599962', time_epoch_executed='1631583585.6' WHERE source_name='4FGL J1615.6+4712' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204977/ft1_4FGL_J1615.6+4712_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204977/ft1_4FGL_J1615.6+4712_daily_bin728.fits outfile=/scratch/kocevski/204977/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin728.fits ra=243.922 dec=47.2028 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.66
user 5.39
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.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/204977/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/204977/ltcube_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.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/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits
.....................!
real 14.37
user 14.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/204977/ltcube_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.fits outfile=/scratch/kocevski/204977/expmap_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.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/204977/ltcube_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.fits
.....................!
real 192.13
user 187.01
sys 4.71

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/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.fits scfile=/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits outfile=/scratch/kocevski/204977/cmap_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.fits scfile=/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits outfile=/scratch/kocevski/204977/cmap_HighResolution_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.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.56
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.fits', '/scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits', expMap='/scratch/kocevski/204977/expmap_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.fits', expCube='/scratch/kocevski/204977/ltcube_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204977/Model_4FGL_J1615.6+4712_daily_bin728.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/204977/ft1_filtered_4FGL_J1615.6+4712_daily_bin728.fits
Spacecraft file(s): /scratch/kocevski/204977/ft2_4FGL_J1615.6+4712_daily_bin728.fits
Exposure map: /scratch/kocevski/204977/expmap_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.fits
Exposure cube: /scratch/kocevski/204977/ltcube_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204977/Model_4FGL_J1615.6+4712_daily_bin728.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) = 3518.23215826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3863       1.0000         .10000E-03   10000.    
     5 'norm      '    11.156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40447E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6949       1.0000         .10000E-03   10000.    
     8 'norm      '    17.627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3597       1.0000         .10000E-03   10000.    
    14 'norm      '    11.865       1.0000         .10000E-03   10000.    
    15 'norm      '    .41663E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7585       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22783E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0185       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .88956E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.5316       1.0000         .10000E-03   10000.    
    27 'norm      '    3.4441       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .36858       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85885       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84238       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=   3518.162     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     3647 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4023        5.3174        .21722E-05   -.50652E-04
   2  Prefactor     .10000E-03    8.7032       -.71019E-05** at limit **
   3  Prefactor     .10000E-03    8.1425        .73756E-05** at limit **
   4  Prefactor     2.4023        18.468        .15565E-06   -.14263E-03
   5  norm          11.163        19.174        .80376E-06   -.40316E-04
   6  Prefactor     .10238E-03    22.383        .26738E-05** at limit **
   7  Prefactor     3.6971        10.616       -.73321E-06   -.19402E-03
   8  norm          17.617        14.655        .95095E-07   -.23446E-03
   9  Prefactor     .10000E-03    39.063       -.34221E-04** at limit **
  10  Prefactor     .10000E-03    14.003       -.42781E-05** at limit **
  11  Prefactor     .10000E-03    55.701        .19580E-04** at limit **
  12  Prefactor     .10000E-03    3.9793       -.92185E-07** at limit **
  13  Prefactor     3.3605        3.3127        .96010E-07   -.22654E-03
  14  norm          11.867        18.977        .10163E-05   -.22161E-04
  15  norm          .41610E-01    .10354        .97540E-07    .24425E-03
  16  norm          .10000E-03    6.2373        .80920E-06** at limit **
  17  Prefactor     45.903        26.538       -.45704E-05   -.89564E-04
  18  Prefactor     2.7548        5.8963       -.92588E-06   -.41554E-03
  19  Prefactor     .10000E-03    29.333        .20559E-04** at limit **
  20  norm          .10000E-03    19.366       -.29389E-05** at limit **
  21  Prefactor     .10000E-03    1.1934        .13136E-06** at limit **
  22  Prefactor     3.0186        1.7170        .96586E-07   -.80928E-03
  23  Prefactor     .10000E-03    4.3928        .67047E-07** at limit **
  24  Prefactor     .21392E-01    2.1980        .27403E-06   -.25165E-03
  25  Prefactor     .10000E-03    12.764        .51725E-05** at limit **
  26  norm          6.5311        2.6309        .61076E-07   -.11077E-03
  27  norm          3.4434        1.7462        .67345E-07   -.62960E-04
  28  Prefactor     .10000E-03    6.9162       -.24445E-05** at limit **
  29  norm          .36804        1.1796       -.28924E-06   -.10676E-02
  30  Normalizat    .85868        .23308       -.65705E-07   -.34918E-03
  31  Prefactor     .84233        .22316       -.19349E-06   -.28604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40229
  norm       = 11.1633
  Prefactor  = 0.000102382
  Prefactor  = 3.69713
  norm       = 17.617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36049
  norm       = 11.8672
  norm       = 0.04161
  norm       = 0.0001
  Prefactor  = 45.9032
  Prefactor  = 2.75484
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01862
  Prefactor  = 0.0001
  Prefactor  = 0.021392
  Prefactor  = 0.0001
  norm       = 6.53114
  norm       = 3.44341
  Prefactor  = 0.0001
  norm       = 0.368039
  Normalizat = 0.85868
  Prefactor  = 0.842334
 **********
 **   18 **HESSE 
 **********

 FCN=   3518.162     FROM HESSE     STATUS=OK           632 CALLS     4279 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4023        5.2235        .15034E-03   -1.5339    
   2  Prefactor     .10000E-03    8.7421        .17049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1376        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4023        17.797        .26515E-03   -1.5398    
   5  norm          11.163        19.166        .11995E-03   -1.5040    
   6  Prefactor     .10238E-03    244.55        .53219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6971        10.568        .21010E-03   -1.5323    
   8  norm          17.617        14.638        .95397E-04   -1.4868    
   9  Prefactor     .10000E-03    38.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0111        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3605        3.2984        .10267E-03   -1.5341    
  14  norm          11.867        18.972        .11630E-03   -1.5019    
  15  norm          .41610E-01    .86349E-01    .27073E-03   -1.5667    
  16  norm          .10000E-03    6.2374        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.903        26.022        .59194E-04   -1.4352    
  18  Prefactor     2.7548        5.8803        .19858E-03   -1.5376    
  19  Prefactor     .10000E-03    29.890        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9537        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0186        1.4671        .46461E-04   -1.5360    
  23  Prefactor     .10000E-03    4.4478        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .21392E-01    4.8034        .30627E-01   -1.5679    
  25  Prefactor     .10000E-03    12.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.5311        2.6304        .58526E-04   -1.5197    
  27  norm          3.4434        1.7401        .52954E-04   -1.5337    
  28  Prefactor     .10000E-03    6.9379        .15210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .36804        1.1829        .10655E-03   -1.5587    
  30  Normalizat    .85868        .27445        .25029E-03   -.97928    
  31  Prefactor     .84233        .26382        .24555E-03   -.98186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03086e-08
Minuit parameter uncertainties:
  1  5.2242
  2  6.69892e-05
  3  1.12335e-05
  4  13.0825
  5  19.1767
  6  0.0484676
  7  10.5737
  8  14.6408
  9  1.17892e-05
  10  2.77282e-06
  11  3.21668e-06
  12  2.61341e-08
  13  3.2986
  14  18.9817
  15  0.086349
  16  5.41238e-08
  17  26.0287
  18  5.8815
  19  0.000378846
  20  3.53602e-07
  21  2.13512e-05
  22  1.46707
  23  3.07929e-06
  24  0.639661
  25  8.93124e-06
  26  2.63044
  27  1.7401
  28  1.30012e-05
  29  1.183
  30  0.274891
  31  0.264221
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.773e-06  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:  8.423e-01  2.642e-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:  8.587e-01  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.922 47.203
Photon Flux Upper Limit: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204977/likelihoodResults_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.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) = 3518.16212067
delta logL = -0.000329634662194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3518.16179137
delta logL = -3.3549440559e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1783       1.0000          .0000       10.000    
     3 'Normalizat'    .85860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84245       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.

 FCN=   3518.162     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8257        .90712E-02** at limit **
   2  Index         2.1688        5.5102        .50000        .49888E-05
   3  Normalizat    .85868        .34584E-02    .44370E-01    .32295E-04
   4  Prefactor     .84233        .33831E-02    .44267E-01    .31616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16882
  Normalizat = 0.858683
  Prefactor  = 0.842333
 **********
 **   18 **HESSE 
 **********

 FCN=   3518.162     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    269.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1688        5.3974        .50000       -.60193    
   3  Normalizat    .85868        .23653E-01    .25029E-03   -.97928    
   4  Prefactor     .84233        .23139E-01    .24555E-03   -.98186    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.3812e-08
Minuit parameter uncertainties:
  1  0.000335194
  2  233.912
  3  0.0236531
  4  0.023139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204977': 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) = 3518.16179101
delta logL = 2.73435034615e-08

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.352e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.169e+00  2.339e+02  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:  8.423e-01  2.314e-02  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:  8.587e-01  2.365e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 243.922 47.203

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/204977/cmap_HighResolution_428025601_428284801_4FGL_J1615.6+4712_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.29e-08', time_completed='2021-09-13 18:51:19.711942', job_id='204977', GAL2='0.84', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631584279.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='728' AND source_name='4FGL J1615.6+4712' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 204977: <4FGL_J1615.6+4712_daily_bin728> in cluster <slac> Done

Job <4FGL_J1615.6+4712_daily_bin728> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 18:35:25 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 18:35:55 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:35:55 2021
Terminated at Mon Sep 13 18:51:20 2021
Results reported at Mon Sep 13 18:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+4712_daily_bin728 243.922 47.2028 428025601 428284801 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 :                                   691.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             253.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            955 sec.

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

