/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1415.5+4830_daily_bin375
RA = 213.899, Dec = 48.5142
tmin = 336528001, tmax = 336787201
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='263667', job_status='RUN', time_executed='2021-09-09 05:27:58.016997', time_epoch_executed='1631190478.02' WHERE source_name='4FGL J1415.5+4830' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263667

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263667/ft1_4FGL_J1415.5+4830_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263667/ft1_4FGL_J1415.5+4830_daily_bin375.fits outfile=/scratch/kocevski/263667/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin375.fits ra=213.899 dec=48.5142 rad=12.0 tmin=336528001.0 tmax=336787201.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 8.04
user 5.54
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.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/263667/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.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 4.16
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/263667/ltcube_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.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/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits
.....................!
real 15.06
user 11.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/263667/ltcube_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.fits outfile=/scratch/kocevski/263667/expmap_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.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/263667/ltcube_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.fits
.....................!
real 206.42
user 185.25
sys 4.65

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

Setting source of interest to:
4FGL J1415.5+4830 @ 213.899 48.5142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits scfile=/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits outfile=/scratch/kocevski/263667/cmap_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.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=213.899 yref=48.5142 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.73
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits scfile=/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits outfile=/scratch/kocevski/263667/cmap_HighResolution_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.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=213.899 yref=48.5142 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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263667/Model_4FGL_J1415.5+4830_daily_bin375.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/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits....................!
real 44.63
user 30.21
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits', '/scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits', expMap='/scratch/kocevski/263667/expmap_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.fits', expCube='/scratch/kocevski/263667/ltcube_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263667/Model_4FGL_J1415.5+4830_daily_bin375.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1415.5+4830'

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.339e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.944e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263667/ft1_filtered_4FGL_J1415.5+4830_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/263667/ft2_4FGL_J1415.5+4830_daily_bin375.fits
Exposure map: /scratch/kocevski/263667/expmap_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.fits
Exposure cube: /scratch/kocevski/263667/ltcube_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263667/Model_4FGL_J1415.5+4830_daily_bin375.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) = 2950.00224388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11852E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.277       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .77853       1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13317E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.993       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17170E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5737       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.8635       1.0000         .10000E-03   10000.    
    30 'norm      '    .94542       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    10.013       1.0000         .10000E-03   10000.    
    34 'norm      '    10.429       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .94027       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .98368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2949.934     FROM MIGRAD    STATUS=CONVERGED   1072 CALLS     5678 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7029       -.21951E-07** at limit **
   2  Prefactor     .10000E-03    24.342       -.40823E-07** at limit **
   3  Prefactor     .10000E-03    17.505       -.66034E-07** at limit **
   4  Prefactor     .10000E-03    32.362        .34645E-07** at limit **
   5  norm          .10000E-03    4.4634       -.11645E-06** at limit **
   6  Prefactor     .10000E-03    212.79       -.12438E-05** at limit **
   7  Prefactor     35.641        128.39       -.10871E-05    .19692E-04
   8  Prefactor     .10000E-03    84.779       -.71303E-07** at limit **
   9  norm          17.277        4.0967        .27933E-07    .44057E-05
  10  norm          .10000E-03    53.406       -.18671E-06** at limit **
  11  norm          .10000E-03    2.6803       -.38595E-07** at limit **
  12  norm          .78088        19.526       -.15937E-05    .23764E-03
  13  Prefactor     78.884        74.058        .79974E-07    .98773E-05
  14  Prefactor     .10000E-03    23.448       -.14975E-06** at limit **
  15  Prefactor     .10000E-03    37.019       -.13141E-06** at limit **
  16  Prefactor     .10000E-03    8.8016       -.84734E-07** at limit **
  17  Prefactor     49.135        40.813        .57988E-07   -.15936E-04
  18  Prefactor     .10011E-03    31.249       -.24500E-05** at limit **
  19  Prefactor     .10000E-03    3.1267       -.28610E-06** at limit **
  20  Prefactor     29.986        28.663        .22382E-05    .87116E-04
  21  norm          .10000E-03    9.7874       -.29779E-07** at limit **
  22  Prefactor     36.238        40.589        .36815E-06    .20447E-04
  23  Prefactor     .10000E-03    12.618       -.22414E-07** at limit **
  24  Prefactor     .10001E-03    465.97       -.32586E-06** at limit **
  25  Prefactor     2.5751        131.93        .67011E-05    .46548E-04
  26  Prefactor     .10000E-03    22.366       -.50556E-07** at limit **
  27  Prefactor     .10000E-03    23.317       -.32791E-07** at limit **
  28  Prefactor     .10000E-03    73.726       -.34682E-06** at limit **
  29  Prefactor     3.8680        57.204       -.30819E-06   -.14127E-04
  30  norm          .94592        3.0167        .23881E-07    .55829E-04
  31  Prefactor     .10000E-03    14.846       -.90298E-07** at limit **
  32  Prefactor     .10000E-03    8.4028       -.44908E-07** at limit **
  33  Prefactor     10.014        14.096        .96466E-07    .43448E-05
  34  norm          10.429        6.3354       -.11422E-07   -.26058E-05
  35  Prefactor     .10000E-03    5.1831       -.90322E-08** at limit **
  36  Normalizat    .94005        .28344       -.19883E-05    .70092E-04
  37  Prefactor     .98383        .30262        .17362E-05   -.16715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 35.6408
  Prefactor  = 0.0001
  norm       = 17.2771
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.780876
  Prefactor  = 78.8843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.1351
  Prefactor  = 0.000100108
  Prefactor  = 0.0001
  Prefactor  = 29.9856
  norm       = 0.0001
  Prefactor  = 36.2384
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 2.57511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.86804
  norm       = 0.945918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0142
  norm       = 10.4289
  Prefactor  = 0.0001
  Normalizat = 0.940045
  Prefactor  = 0.983826
 **********
 **   18 **HESSE 
 **********

 FCN=   2949.934     FROM HESSE     STATUS=OK           849 CALLS     6527 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7058        .69212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5544        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    213.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.641        128.32        .33635E-03   -1.4513    
   8  Prefactor     .10000E-03    85.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.277        4.1048        .49895E-04   -1.4876    
  10  norm          .10000E-03    53.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6916        .86804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .78088        116.86        .42419E-02   -1.5531    
  13  Prefactor     78.884        73.546        .45215E-04   -1.3929    
  14  Prefactor     .10000E-03    23.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9012        .15712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.135        41.205        .57209E-04   -1.4305    
  18  Prefactor     .10011E-03    388.60        .50076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1119        .18138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.986        29.467        .73159E-04   -1.4612    
  21  norm          .10000E-03    9.7895        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.238        40.575        .66577E-04   -1.4503    
  23  Prefactor     .10000E-03    12.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    472.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5751        137.30        .12721E-02   -1.5387    
  26  Prefactor     .10000E-03    22.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    74.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.8680        51.843        .20530E-03   -1.5315    
  30  norm          .94592        2.8088        .14157E-03   -1.5513    
  31  Prefactor     .10000E-03    14.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    8.5772        .15368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     10.014        14.093        .12663E-03   -1.5075    
  34  norm          10.429        6.3368        .10365E-03   -1.5062    
  35  Prefactor     .10000E-03    5.1851        .12076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .94005        .31932        .24261E-03   -.95067    
  37  Prefactor     .98383        .34135        .28298E-03   -.93271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46905e-09
Minuit parameter uncertainties:
  1  5.61458e-07
  2  1.61374e-07
  3  3.56019e-06
  4  3.29904e-05
  5  4.19526e-06
  6  0.00134978
  7  129.331
  8  4.62976e-05
  9  4.10486
  10  9.23378e-05
  11  2.00902e-06
  12  19.1422
  13  73.6312
  14  2.48294e-06
  15  2.79743e-05
  16  5.69672e-06
  17  41.2286
  18  0.0130579
  19  6.31382e-05
  20  29.4815
  21  1.80731e-06
  22  40.6063
  23  3.01659e-07
  24  0.00396868
  25  37.6975
  26  1.47162e-05
  27  8.63468e-06
  28  4.17903e-05
  29  28.3514
  30  2.80919
  31  1.30594e-05
  32  5.08373e-07
  33  14.0972
  34  6.33718
  35  4.31341e-07
  36  0.319963
  37  0.342105
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  5.697e-06  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.944e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.838e-01  3.421e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.400e-01  3.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 213.899 48.514
Photon Flux Upper Limit: 9.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263667/likelihoodResults_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.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): 0
logL (Free Index) = 2949.93478481
delta logL = -0.00053519201947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2949.93424901
delta logL = 5.99577106186e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9987       1.0000          .0000       10.000    
     3 'Normalizat'    .94008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2949.934     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    927.91        .36285E-03** at limit **
   2  Index         2.0673        6.1719        .50000       -.65909E-04
   3  Normalizat    .94004        .56450E-01    .24262E-03    .31425E-03
   4  Prefactor     .98384        .67529E-01    .28298E-03    .52367E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2949.934     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      395 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    927.91        .55268E-03** at limit **
   2  Index         2.0673        6.1719        .67813E-05   -.65909E-04
   3  Normalizat    .94004        .56450E-01    .17314E-06    .31425E-03
   4  Prefactor     .98384        .67529E-01    .36919E-06    .52367E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2949.934     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      429 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    6252.2        .72569E-04** at limit **
   2  Index         2.0678        5.4895        .50000       -.66008E-04
   3  Normalizat    .94004        .15347        .48524E-04    .30948E-03
   4  Prefactor     .98384        .18351        .56596E-04    .51952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Index      = 2.0678
  Normalizat = 0.940037
  Prefactor  = 0.983839
 **********
 **   18 **HESSE 
 **********

 FCN=   2949.934     FROM HESSE     STATUS=OK            29 CALLS      458 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    14.980        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0678        6.0094        .50000       -.62666    
   3  Normalizat    .94004        .27414        .97047E-05   -.95067    
   4  Prefactor     .98384        .32780        .11319E-04   -.93270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4869e-09
Minuit parameter uncertainties:
  1  0.0018349
  2  4.39171
  3  0.274553
  4  0.328461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263667': 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) = 2949.93424791
delta logL = 1.70843804881e-06

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.001e-04  1.835e-03  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  2.068e+00  4.392e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.838e-01  3.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.400e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 213.899 48.514

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/263667/cmap_HighResolution_336528001_336787201_4FGL_J1415.5+4830_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-09 05:41:54.043879', job_id='263667', GAL2='0.98', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631191314.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='375' AND source_name='4FGL J1415.5+4830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 05:41:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 263667: <4FGL_J1415.5+4830_daily_bin375> in cluster <slac> Done

Job <4FGL_J1415.5+4830_daily_bin375> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 05:25:24 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:25:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 05:25:25 2021
Terminated at Thu Sep  9 05:41:55 2021
Results reported at Thu Sep  9 05:41:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_daily_bin375 213.899 48.5142 336528001 336787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1415.5+4830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.01 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             290.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

