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


Performing analysis on: 4FGL_J1615.6+4712_daily_bin1202
RA = 243.922, Dec = 47.2028
tmin = 550886401, tmax = 551145601
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='207840', job_status='RUN', time_executed='2021-09-13 18:50:57.112863', time_epoch_executed='1631584257.11' WHERE source_name='4FGL J1615.6+4712' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207840/ft1_4FGL_J1615.6+4712_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207840/ft2_4FGL_J1615.6+4712_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207840/ft1_4FGL_J1615.6+4712_daily_bin1202.fits outfile=/scratch/kocevski/207840/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin1202.fits ra=243.922 dec=47.2028 rad=12.0 tmin=550886401.0 tmax=551145601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.76
user 3.53
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207840/ft1_filtered_4FGL_J1615.6+4712_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/207840/ft2_4FGL_J1615.6+4712_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/207840/ltcube_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.fits outfile=/scratch/kocevski/207840/expmap_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.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/207840/ltcube_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.fits
.....................!
real 192.44
user 187.30
sys 4.30

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/207840/ft1_filtered_4FGL_J1615.6+4712_daily_bin1202.fits scfile=/scratch/kocevski/207840/ft2_4FGL_J1615.6+4712_daily_bin1202.fits outfile=/scratch/kocevski/207840/cmap_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.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/207840/ft1_filtered_4FGL_J1615.6+4712_daily_bin1202.fits scfile=/scratch/kocevski/207840/ft2_4FGL_J1615.6+4712_daily_bin1202.fits outfile=/scratch/kocevski/207840/cmap_HighResolution_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.204       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13538E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6378       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5553       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6793       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.0492       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86183       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85094       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=   1846.610     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4148 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.018       -.18430E-05** at limit **
   2  Prefactor     .10000E-03    19.583       -.14251E-04** at limit **
   3  Prefactor     .10000E-03    12.114       -.59069E-05** at limit **
   4  Prefactor     .10000E-03    10.499        .86091E-05** at limit **
   5  norm          .10000E-03    14.690        .10261E-04** at limit **
   6  Prefactor     .10000E-03    24.702        .23624E-04** at limit **
   7  Prefactor     .10000E-03    32.880       -.24605E-04** at limit **
   8  norm          24.216        17.187        .42797E-05    .34991E-03
   9  Prefactor     .10000E-03    228.11       -.60401E-04** at limit **
  10  Prefactor     .10000E-03    11.542       -.72818E-05** at limit **
  11  Prefactor     11.791        29.929        .16241E-05    .13705E-03
  12  Prefactor     3.1386        10.024       -.75442E-06   -.14764E-03
  13  Prefactor     .10000E-03    1.8242       -.24650E-07** at limit **
  14  norm          .10000E-03    14.728        .10150E-04** at limit **
  15  norm          1.6373        .47682       -.97357E-07    .46550E-03
  16  norm          .10000E-03    17.633       -.11832E-04** at limit **
  17  Prefactor     54.219        57.831        .54928E-05   -.16971E-04
  18  Prefactor     2.5569        5.1041        .10761E-05   -.87758E-04
  19  Prefactor     .10000E-03    30.208        .10187E-04** at limit **
  20  norm          .10000E-03    117.03        .33339E-04** at limit **
  21  Prefactor     .10000E-03    1.4279       -.34573E-07** at limit **
  22  Prefactor     .10000E-03    1.4878        .90601E-08** at limit **
  23  Prefactor     .10000E-03    4.3245        .21333E-07** at limit **
  24  Prefactor     .10000E-03    3.4099       -.25132E-07** at limit **
  25  Prefactor     .10000E-03    9.3371       -.18632E-05** at limit **
  26  norm          3.6787        2.8703        .23753E-07   -.81710E-05
  27  norm          .10000E-03    .87021       -.13719E-07** at limit **
  28  Prefactor     .10000E-03    4.7125       -.61826E-07** at limit **
  29  norm          2.0491        1.5419        .48430E-08   -.66986E-04
  30  Normalizat    .86166        .31175       -.13244E-05    .14005E-03
  31  Prefactor     .85115        .30288        .39973E-07    .10466E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 24.2159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7906
  Prefactor  = 3.13858
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.63731
  norm       = 0.0001
  Prefactor  = 54.2186
  Prefactor  = 2.55691
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67872
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04915
  Normalizat = 0.861661
  Prefactor  = 0.851153
 **********
 **   18 **HESSE 
 **********

 FCN=   1846.610     FROM HESSE     STATUS=OK           606 CALLS     4754 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.535        .29054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.113        .14610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.510        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.686        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.216        17.239        .81422E-04   -1.4723    
   9  Prefactor     .10000E-03    228.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.568        .14180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.791        29.835        .11661E-03   -1.5021    
  12  Prefactor     3.1386        10.046        .22869E-03   -1.5354    
  13  Prefactor     .10000E-03    1.8262        .56681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.727        .16109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6373        .47399        .13645E-04   -1.5452    
  16  norm          .10000E-03    17.636        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.219        58.770        .54478E-04   -1.4234    
  18  Prefactor     2.5569        5.0763        .13219E-03   -1.5388    
  19  Prefactor     .10000E-03    30.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    117.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9434        .96876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.5333        .10163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3719        .87204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6420        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.3458        .12826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6787        2.8669        .62523E-04   -1.5324    
  27  norm          .10000E-03    .89605        .78183E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.7252        .91106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.0491        1.5390        .44698E-04   -1.5422    
  30  Normalizat    .86166        .37017        .24744E-03   -.97821    
  31  Prefactor     .85115        .35943        .24746E-03   -.97869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2653e-10
Minuit parameter uncertainties:
  1  0.000140135
  2  0.000117021
  3  3.99447e-06
  4  1.34635e-05
  5  6.89378e-07
  6  1.59351e-06
  7  0.000264253
  8  17.2421
  9  0.000475549
  10  5.55564e-06
  11  29.8724
  12  10.0513
  13  4.28074e-07
  14  2.72063e-06
  15  0.47399
  16  6.42814e-07
  17  58.8325
  18  5.07713
  19  0.00031106
  20  3.56425e-05
  21  2.97111e-06
  22  9.06159e-07
  23  1.66051e-06
  24  2.41844e-06
  25  9.8558e-07
  26  2.86705
  27  1.1938e-07
  28  8.58916e-07
  29  1.53904
  30  0.371261
  31  0.360435
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.556e-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.512e-01  3.604e-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.617e-01  3.713e-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: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207840/likelihoodResults_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.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) = 1846.61006541
delta logL = -0.000411752096397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1846.60965362
delta logL = 4.05584614782e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1738       1.0000          .0000       10.000    
     3 'Normalizat'    .86166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85115       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=   1846.610     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0362        .90712E-02** at limit **
   2  Index         2.1588        5.9014        .50000        .10278E-04
   3  Normalizat    .86166        .57179E-02    .44410E-01    .42108E-05
   4  Prefactor     .85115        .57198E-02    .44379E-01    .33483E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15884
  Normalizat = 0.861658
  Prefactor  = 0.851153
 **********
 **   18 **HESSE 
 **********

 FCN=   1846.610     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.741        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1588        5.4279        .50000       -.60436    
   3  Normalizat    .86166        .19137E-01    .24744E-03   -.97821    
   4  Prefactor     .85115        .19145E-01    .24746E-03   -.97869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05521e-07
Minuit parameter uncertainties:
  1  7.79613e-05
  2  180.151
  3  0.0191374
  4  0.0191449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207840': 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) = 1846.60965358
delta logL = 7.91972070147e-08

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.796e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.159e+00  1.802e+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.512e-01  1.914e-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.617e-01  1.914e-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/207840/cmap_HighResolution_550886401_551145601_4FGL_J1615.6+4712_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-13 19:00:03.282827', job_id='207840', GAL2='0.85', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631584803.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.92e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1202' AND source_name='4FGL J1615.6+4712' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 19:00:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 207840: <4FGL_J1615.6+4712_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1615.6+4712_daily_bin1202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 18:45:21 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 18:48:28 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:48:28 2021
Terminated at Mon Sep 13 19:00:04 2021
Results reported at Mon Sep 13 19:00:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+4712_daily_bin1202 243.922 47.2028 550886401 551145601 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 :                                   541.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            883 sec.

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

