/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 3 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1015.6+5553_daily_bin4
RA = 153.911, Dec = 55.8893
tmin = 240364801, tmax = 240624001
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='758469', job_status='RUN', time_executed='2021-09-01 15:06:33.175271', time_epoch_executed='1630533993.18' WHERE source_name='4FGL J1015.6+5553' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/758469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/758469/ft1_4FGL_J1015.6+5553_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/758469/ft1_4FGL_J1015.6+5553_daily_bin4.fits outfile=/scratch/kocevski/758469/ft1_filteredMKT_4FGL_J1015.6+5553_daily_bin4.fits ra=153.911 dec=55.8893 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.48
user 1.27
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.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/758469/ft1_filteredMKT_4FGL_J1015.6+5553_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/758469/ltcube_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.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/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits
.....................!
real 16.43
user 16.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/758469/ltcube_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.fits outfile=/scratch/kocevski/758469/expmap_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.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/758469/ltcube_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.fits
.....................!
real 194.91
user 188.36
sys 5.60

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

Setting source of interest to:
4FGL J1015.6+5553 @ 153.911 55.8893

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits scfile=/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits outfile=/scratch/kocevski/758469/cmap_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.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=153.911 yref=55.8893 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits scfile=/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits outfile=/scratch/kocevski/758469/cmap_HighResolution_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.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=153.911 yref=55.8893 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/758469/Model_4FGL_J1015.6+5553_daily_bin4.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/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits.....................!
real 41.65
user 40.13
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits', '/scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits', expMap='/scratch/kocevski/758469/expmap_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.fits', expCube='/scratch/kocevski/758469/ltcube_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/758469/Model_4FGL_J1015.6+5553_daily_bin4.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1015.6+5553'

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  7.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  7.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/758469/ft1_filtered_4FGL_J1015.6+5553_daily_bin4.fits
Spacecraft file(s): /scratch/kocevski/758469/ft2_4FGL_J1015.6+5553_daily_bin4.fits
Exposure map: /scratch/kocevski/758469/expmap_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.fits
Exposure cube: /scratch/kocevski/758469/ltcube_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/758469/Model_4FGL_J1015.6+5553_daily_bin4.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) = 3973.12545469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16581E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    171.97       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4258       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4574       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8761       1.0000         .10000E-03   10000.    
    15 'norm      '    17.873       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6255       1.0000         .10000E-03   10000.    
    17 'norm      '    .69452E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    14.332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.557       1.0000         .10000E-03   10000.    
    22 'norm      '    8.6228       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4056       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.0234       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.876       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .74337       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3973.107     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4723 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    125.97        .17484E-04** at limit **
   2  Prefactor     .10000E-03    4.8469       -.10137E-07** at limit **
   3  Prefactor     .10000E-03    13.861        .86009E-06** at limit **
   4  Prefactor     171.94        146.23       -.31682E-05    .53138E-05
   5  norm          .10000E-03    .32974       -.76095E-07** at limit **
   6  Prefactor     .10000E-03    3.9689        .11736E-06** at limit **
   7  Prefactor     3.4253        4.1816       -.52538E-07    .16120E-04
   8  Prefactor     .10000E-03    5.1429        .37068E-07** at limit **
   9  Prefactor     6.4642        23.921        .24325E-05    .26181E-04
  10  Prefactor     7.4303        16.252       -.23919E-05    .98322E-04
  11  Prefactor     .10000E-03    3.4564        .51499E-07** at limit **
  12  norm          10.644        10.157        .45748E-08    .10228E-05
  13  Prefactor     .10000E-03    19.675        .70775E-06** at limit **
  14  norm          1.8762        .76598       -.89833E-08    .13756E-03
  15  norm          17.873        14.685       -.13399E-06    .71542E-05
  16  Prefactor     3.6251        5.6509       -.26315E-06    .18138E-04
  17  norm          .69915E-01    .62379        .56627E-07    .42477E-03
  18  norm          14.332        5.0003       -.61924E-07    .32648E-04
  19  Prefactor     .10000E-03    56.731       -.19599E-05** at limit **
  20  norm          .10000E-03    11.764       -.11190E-06** at limit **
  21  Prefactor     22.562        48.855        .12372E-05    .55498E-04
  22  norm          8.6231        6.8357       -.38813E-07    .15249E-03
  23  norm          1.4058        2.9582       -.20661E-06    .74455E-04
  24  Prefactor     .10000E-03    26.996       -.13494E-05** at limit **
  25  Prefactor     .10000E-03    91.235        .84581E-06** at limit **
  26  norm          5.0235        3.7944        .28933E-06    .44563E-03
  27  Prefactor     .10000E-03    65.838       -.35656E-05** at limit **
  28  Prefactor     .10000E-03    224.54       -.75852E-05** at limit **
  29  Prefactor     .10000E-03    43.156        .34027E-05** at limit **
  30  Prefactor     23.877        13.628        .13494E-06    .20142E-03
  31  Prefactor     .10000E-03    15.168       -.88673E-06** at limit **
  32  Normalizat    .74330        .21387        .14153E-05    .13379E-03
  33  Prefactor     .92831        .23035       -.10833E-06    .16716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 171.939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42533
  Prefactor  = 0.0001
  Prefactor  = 6.46419
  Prefactor  = 7.43034
  Prefactor  = 0.0001
  norm       = 10.644
  Prefactor  = 0.0001
  norm       = 1.87621
  norm       = 17.8729
  Prefactor  = 3.6251
  norm       = 0.0699145
  norm       = 14.3317
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5616
  norm       = 8.62309
  norm       = 1.40578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.02353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8773
  Prefactor  = 0.0001
  Normalizat = 0.743297
  Prefactor  = 0.928311
 **********
 **   18 **HESSE 
 **********

 FCN=   3973.107     FROM HESSE     STATUS=OK           699 CALLS     5422 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.70        .52865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8649        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     171.94        146.32        .15384E-03   -1.3078    
   5  norm          .10000E-03    .33820        .70610E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9758        .12264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4253        4.1657        .13492E-03   -1.5338    
   8  Prefactor     .10000E-03    5.1441        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4642        23.916        .15794E-03   -1.5199    
  10  Prefactor     7.4303        16.280        .73497E-03   -1.5163    
  11  Prefactor     .10000E-03    3.4722        .11436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.644        10.161        .12281E-03   -1.5055    
  13  Prefactor     .10000E-03    19.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8762        .76523        .33941E-04   -1.5434    
  15  norm          17.873        14.677        .94738E-04   -1.4862    
  16  Prefactor     3.6251        5.6350        .17768E-03   -1.5327    
  17  norm          .69915E-01    1.3310        .93380E-03   -1.5655    
  18  norm          14.332        4.9989        .80127E-04   -1.4951    
  19  Prefactor     .10000E-03    56.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.562        50.070        .84337E-04   -1.4758    
  22  norm          8.6231        6.9746        .95232E-04   -1.5121    
  23  norm          1.4058        2.9259        .14608E-03   -1.5471    
  24  Prefactor     .10000E-03    26.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    91.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.0235        3.7893        .10103E-03   -1.5260    
  27  Prefactor     .10000E-03    65.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    230.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    43.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     23.877        13.684        .81978E-04   -1.4730    
  31  Prefactor     .10000E-03    15.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .74330        .24356        .25593E-03   -1.0221    
  33  Prefactor     .92831        .26442        .26549E-03   -.95159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32212e-10
Minuit parameter uncertainties:
  1  0.000504448
  2  1.3533e-06
  3  1.79225e-05
  4  146.628
  5  9.83189e-07
  6  6.62225e-06
  7  4.16608
  8  2.73895e-06
  9  23.9512
  10  16.2897
  11  2.26632e-06
  12  10.1623
  13  1.33567e-05
  14  0.765234
  15  14.6798
  16  5.63585
  17  0.609685
  18  4.99909
  19  3.38435e-05
  20  2.42259e-06
  21  50.1634
  22  6.97524
  23  2.92618
  24  2.52506e-05
  25  5.80207e-05
  26  3.78951
  27  7.1428e-05
  28  0.000248215
  29  9.98489e-05
  30  13.686
  31  6.57647e-06
  32  0.243914
  33  0.26479
Done.

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

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  3.384e-05  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  7.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
767    Prefactor:  9.283e-01  2.648e-01  0.000e+00  1.000e+01 ( 1.000e+00)
768        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
769        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
766   Normalization:  7.433e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 153.911 55.889
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/758469/likelihoodResults_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.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) = 3973.10668614
delta logL = -8.35250702949e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3973.10660345
delta logL = -8.38011601445e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8275       1.0000          .0000       10.000    
     3 'Normalizat'    .74330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92831       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7700E+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=   3973.107     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11998E-03    31.343        .18142E-01** at limit **
   2  Index         2.6351        5.8695        .50000        .14050E-04
   3  Normalizat    .74330        .40381E-02    .25593E-03   -.19378E-03
   4  Prefactor     .92831        .46664E-02    .26549E-03   -.35683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000119978
  Index      = 2.63509
  Normalizat = 0.743299
  Prefactor  = 0.928306
 **********
 **   18 **HESSE 
 **********

 FCN=   3973.107     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11998E-03    183.77        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6351        5.1949        .50000       -.49267    
   3  Normalizat    .74330        .97408E-02    .10237E-04   -1.0221    
   4  Prefactor     .92831        .11256E-01    .53098E-04   -.95159    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37458e-08
Minuit parameter uncertainties:
  1  0.121556
  2  359.454
  3  0.00974086
  4  0.0112564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/758469': 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) = 3973.10660304
delta logL = -4.28845396527e-07

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  1.200e-04  1.216e-01  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  2.635e+00  3.595e+02  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  7.469e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
767    Prefactor:  9.283e-01  1.126e-02  0.000e+00  1.000e+01 ( 1.000e+00)
768        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
769        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
766   Normalization:  7.433e-01  9.741e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 153.911 55.889

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/758469/cmap_HighResolution_240364801_240624001_4FGL_J1015.6+5553_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-01 15:20:55.053674', job_id='758469', GAL2='0.93', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630534855.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-4.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='4' AND source_name='4FGL J1015.6+5553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 758469: <4FGL_J1015.6+5553_daily_bin4> in cluster <slac> Done

Job <4FGL_J1015.6+5553_daily_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:05:39 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:06:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 15:06:20 2021
Terminated at Wed Sep  1 15:20:55 2021
Results reported at Wed Sep  1 15:20:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1015.6+5553_daily_bin4 153.911 55.8893 240364801 240624001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1015.6+5553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            916 sec.

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

