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


Performing analysis on: 4FGL_J1615.6+4712_daily_bin1229
RA = 243.922, Dec = 47.2028
tmin = 557884801, tmax = 558144001
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='209064', job_status='RUN', time_executed='2021-09-13 18:52:33.266027', time_epoch_executed='1631584353.27' WHERE source_name='4FGL J1615.6+4712' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209064/ft1_4FGL_J1615.6+4712_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209064/ft2_4FGL_J1615.6+4712_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209064/ft1_4FGL_J1615.6+4712_daily_bin1229.fits outfile=/scratch/kocevski/209064/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin1229.fits ra=243.922 dec=47.2028 rad=12.0 tmin=557884801.0 tmax=558144001.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.09
user 3.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209064/ft1_filtered_4FGL_J1615.6+4712_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/209064/ft2_4FGL_J1615.6+4712_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/209064/ltcube_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.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/209064/ft2_4FGL_J1615.6+4712_daily_bin1229.fits
.....................!
real 14.80
user 14.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209064/ft1_filtered_4FGL_J1615.6+4712_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/209064/ft2_4FGL_J1615.6+4712_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/209064/ltcube_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.fits outfile=/scratch/kocevski/209064/expmap_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.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/209064/ltcube_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.fits
.....................!
real 193.22
user 187.38
sys 5.33

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/209064/ft1_filtered_4FGL_J1615.6+4712_daily_bin1229.fits scfile=/scratch/kocevski/209064/ft2_4FGL_J1615.6+4712_daily_bin1229.fits outfile=/scratch/kocevski/209064/cmap_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209064/ft1_filtered_4FGL_J1615.6+4712_daily_bin1229.fits scfile=/scratch/kocevski/209064/ft2_4FGL_J1615.6+4712_daily_bin1229.fits outfile=/scratch/kocevski/209064/cmap_HighResolution_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    98.129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12667E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17890E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53563E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    523.73       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14497E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12727E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0003       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8027       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    773.94       1.0000         .10000E-03   10000.    
    26 'norm      '    .97199       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.1664       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0304       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=   926.2948     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4791 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          97.912        178.80        .18111E-05    .37321E-05
   2  Prefactor     .10000E-03    369.96       -.90504E-05** at limit **
   3  Prefactor     .10000E-03    142.27       -.17303E-05** at limit **
   4  Prefactor     .10000E-03    305.09       -.90593E-05** at limit **
   5  norm          .10000E-03    26.052       -.69628E-07** at limit **
   6  Prefactor     .10000E-03    70.108       -.10409E-05** at limit **
   7  Prefactor     .10000E-03    758.19       -.68390E-05** at limit **
   8  norm          521.48        781.89       -.37363E-05   -.57322E-05
   9  Prefactor     .10000E-03    1700.3       -.88064E-06** at limit **
  10  Prefactor     .10000E-03    42.946       -.36311E-08** at limit **
  11  Prefactor     .10000E-03    112.91       -.77864E-07** at limit **
  12  Prefactor     .10000E-03    358.61        .13530E-06** at limit **
  13  Prefactor     .10000E-03    5.8984        .29692E-07** at limit **
  14  norm          .10000E-03    1296.4       -.95177E-06** at limit **
  15  norm          5.9992        1.3044       -.43634E-06    .78579E-03
  16  norm          .10000E-03    33.054        .15923E-07** at limit **
  17  Prefactor     8.2779        505.66        .17223E-04   -.45856E-05
  18  Prefactor     .10000E-03    14.022        .22666E-07** at limit **
  19  Prefactor     .10000E-03    525.94       -.77745E-05** at limit **
  20  norm          .10000E-03    112.79       -.15321E-06** at limit **
  21  Prefactor     .10000E-03    4.7580       -.44846E-06** at limit **
  22  Prefactor     4.8032        6.9716        .16851E-05   -.79883E-05
  23  Prefactor     .10000E-03    29.568        .86153E-07** at limit **
  24  Prefactor     .10000E-03    4.7052        .74200E-07** at limit **
  25  Prefactor     774.20        831.79       -.94983E-06    .33495E-06
  26  norm          .96885        4.3485       -.42758E-06   -.53771E-04
  27  norm          .10000E-03    4.3582        .10606E-06** at limit **
  28  Prefactor     .10000E-03    140.51        .20101E-05** at limit **
  29  norm          3.1655        3.5303       -.45509E-06    .23114E-04
  30  Normalizat    .10000E-01    .17477        .25193E-05** at limit **
  31  Prefactor     1.0309        .43959        .68158E-05   -.27504E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 97.9122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 521.476
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.99915
  norm       = 0.0001
  Prefactor  = 8.27785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.80318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 774.203
  norm       = 0.968852
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.1655
  Normalizat = 0.01
  Prefactor  = 1.03089
 **********
 **   18 **HESSE 
 **********

 FCN=   926.2948     FROM HESSE     STATUS=OK           600 CALLS     5391 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          97.912        179.46        .20290E-03   -1.3726    
   2  Prefactor     .10000E-03    372.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    142.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    307.15        .20326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    26.052        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    759.59        .21123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          521.48        782.91        .89776E-04   -1.1100    
   9  Prefactor     .10000E-03    1701.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    112.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    358.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9004        .72208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1297.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9992        1.3047        .10980E-04   -1.5218    
  16  norm          .10000E-03    33.054        .17102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2779        496.52        .14146E-03   -1.5132    
  18  Prefactor     .10000E-03    14.022        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    527.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    112.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7974        .64367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8032        6.9093        .79846E-04   -1.5270    
  23  Prefactor     .10000E-03    29.568        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.7063        .64484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     774.20        831.81        .74846E-04   -1.0069    
  26  norm          .96885        4.0727        .11409E-03   -1.5511    
  27  norm          .10000E-03    4.3601        .62060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    141.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.1655        3.5489        .56271E-04   -1.5352    
  30  Normalizat    .10000E-01    .17432        .77454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.0309        .43735        .36363E-03   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1007e-10
Minuit parameter uncertainties:
  1  180.471
  2  5.84436e-05
  3  3.05983e-05
  4  0.00014992
  5  3.39923e-07
  6  1.27028e-05
  7  6.5193e-05
  8  800.07
  9  0.00375375
  10  1.5025e-05
  11  4.66036e-05
  12  0.000275807
  13  7.56405e-07
  14  0.00262149
  15  1.30474
  16  1.04172e-05
  17  129.36
  18  1.15322e-06
  19  0.000123026
  20  0.000125184
  21  2.61028e-05
  22  6.91047
  23  1.16519e-05
  24  4.11928e-06
  25  845.861
  26  3.97311
  27  3.87105e-06
  28  0.000453495
  29  3.54918
  30  2.27178e-06
  31  0.438874
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.503e-05  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:  1.031e+00  4.389e-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:  1.000e-02  2.272e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.922 47.203
Photon Flux Upper Limit: 1.15e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209064/likelihoodResults_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.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) = 926.29491863
delta logL = -0.000110135880732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 926.294809304
delta logL = -8.10330334389e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   926.2948     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10402E-03    25.166        .16069E-01** at limit **
   2  Index         2.4078        5.5158        .50000        .10543E-04
   3  Normalizat    .10000E-01    .27889E-03    .77451E-03** at limit **
   4  Prefactor     1.0309        .14812E-01    .36362E-03   -.11155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104023
  Index      = 2.40776
  Normalizat = 0.01
  Prefactor  = 1.03089
 **********
 **   18 **HESSE 
 **********

 FCN=   926.2948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10402E-03    227.96        .16732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4078        5.1254        .50000       -.54503    
   3  Normalizat    .10000E-01    .25768E-02    .15490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0309        .45022E-01    .72724E-04   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.03341e-09
Minuit parameter uncertainties:
  1  0.0608021
  2  402.714
  3  2.90636e-08
  4  0.0450232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209064': 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) = 926.294808974
delta logL = -4.79519144392e-07

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.040e-04  6.080e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.408e+00  4.027e+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:  1.031e+00  4.502e-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:  1.000e-02  2.906e-08  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/209064/cmap_HighResolution_557884801_558144001_4FGL_J1615.6+4712_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-02', job_status='DONE', photon_flux_upper_limit='1.15e-06', time_completed='2021-09-13 19:00:05.906725', job_id='209064', GAL2='1.03', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631584805.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-4.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1229' AND source_name='4FGL J1615.6+4712' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 19:00:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 209064: <4FGL_J1615.6+4712_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1615.6+4712_daily_bin1229> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 18:50:14 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 18:50:23 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:50:23 2021
Terminated at Mon Sep 13 19:00:06 2021
Results reported at Mon Sep 13 19:00:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+4712_daily_bin1229 243.922 47.2028 557884801 558144001 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 :                                   448.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            592 sec.

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

