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


Performing analysis on: 4FGL_J1015.6+5553_daily_bin1404
RA = 153.911, Dec = 55.8893
tmin = 603244801, tmax = 603504001
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='767970', job_status='RUN', time_executed='2021-09-01 15:38:50.500986', time_epoch_executed='1630535930.5' WHERE source_name='4FGL J1015.6+5553' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/767970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/767970/ft1_4FGL_J1015.6+5553_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/767970/ft1_4FGL_J1015.6+5553_daily_bin1404.fits outfile=/scratch/kocevski/767970/ft1_filteredMKT_4FGL_J1015.6+5553_daily_bin1404.fits ra=153.911 dec=55.8893 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.97
user 2.75
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/767970/ft1_filtered_4FGL_J1015.6+5553_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/767970/ltcube_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.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/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits
.....................!
real 18.49
user 18.01
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/767970/ft1_filtered_4FGL_J1015.6+5553_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/767970/ltcube_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.fits outfile=/scratch/kocevski/767970/expmap_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.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/767970/ltcube_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.fits
.....................!
real 191.24
user 186.36
sys 4.34

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/767970/ft1_filtered_4FGL_J1015.6+5553_daily_bin1404.fits scfile=/scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits outfile=/scratch/kocevski/767970/cmap_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.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.97
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/767970/ft1_filtered_4FGL_J1015.6+5553_daily_bin1404.fits scfile=/scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits outfile=/scratch/kocevski/767970/cmap_HighResolution_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.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.74
user 0.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/767970/ft1_filtered_4FGL_J1015.6+5553_daily_bin1404.fits', '/scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits', expMap='/scratch/kocevski/767970/expmap_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.fits', expCube='/scratch/kocevski/767970/ltcube_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/767970/Model_4FGL_J1015.6+5553_daily_bin1404.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/767970/ft1_filtered_4FGL_J1015.6+5553_daily_bin1404.fits
Spacecraft file(s): /scratch/kocevski/767970/ft2_4FGL_J1015.6+5553_daily_bin1404.fits
Exposure map: /scratch/kocevski/767970/expmap_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.fits
Exposure cube: /scratch/kocevski/767970/ltcube_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/767970/Model_4FGL_J1015.6+5553_daily_bin1404.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) = 2225.68650182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    375.18       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32943E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11660E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6021       1.0000         .10000E-03   10000.    
    15 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0252       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.254       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.911       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5199       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    149.89       1.0000         .10000E-03   10000.    
    26 'norm      '    6.5483       1.0000         .10000E-03   10000.    
    27 'Prefactor '    261.58       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .42163       1.0000         .10000E-03   10000.    
    31 'Prefactor '    80.045       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10026E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2224.761     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     4253 TOTAL
                     EDM=   .13E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25181E-03    60.977         .0000    ** at limit **
   2  Prefactor     .10149E-03    12.180         .0000    ** at limit **
   3  Prefactor     375.18        1.0004         .0000        .10219E-03
   4  Prefactor     .32190E-02    .25168         .0000        .36810E-04
   5  norm          5.1374        5.2609         .0000       -.23547E-03
   6  Prefactor    10000.0        35.804         .0000       -.18952E-02
   7  Prefactor    10000.0        118.83         .0000    ** at limit **
   8  Prefactor    10000.0        15.096         .0000       -.14835E-02
   9  Prefactor     .10003E-03    10.824         .0000    ** at limit **
  10  Prefactor     .10000E-03    6.7309         .0000    ** at limit **
  11  Prefactor     .64480E-03    77.862         .0000    ** at limit **
  12  norm          .10662E-03    25.136         .0000    ** at limit **
  13  Prefactor     .14399E-03    34.269         .0000    ** at limit **
  14  norm          1.6020        1.6432         .0000       -.19221E-02
  15  norm          .13097E-02    59.595         .0000    ** at limit **
  16  Prefactor     .10685E-03    28.104         .0000    ** at limit **
  17  norm          3.0257        1.0347         .0000       -.59837E-02
  18  norm          .10000E-03    9.1405         .0000    ** at limit **
  19  Prefactor     .10232E-03    14.838         .0000    ** at limit **
  20  norm          20.257        1.1099         .0000       -.65107E-03
  21  Prefactor     .10169E-03    12.715         .0000    ** at limit **
  22  norm          14.913        5.5350         .0000       -.26444E-02
  23  norm          6.5199        3.8438         .0000        .13624E-02
  24  Prefactor     .10920E-03    43.144         .0000    ** at limit **
  25  Prefactor     149.92        3.7406         .0000       -.82832E-02
  26  norm          6.5453        4.2660         .0000       -.28047E-03
  27  Prefactor     261.55        3.9316         .0000        .11726E-01
  28  Prefactor     .10013E-03    19.222         .0000    ** at limit **
  29  Prefactor     .21337E-03    97.423         .0000    ** at limit **
  30  Prefactor     .52505        13.735         .0000        .22433E-02
  31  Prefactor     79.897        15.974         .0000       -.86504E-02
  32  Normalizat    .10000E-01    1.7231         .0000    ** at limit **
  33  Prefactor     1.2240        .19459         .0000       -.11581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000251813
  Prefactor  = 0.000101486
  Prefactor  = 375.184
  Prefactor  = 0.00321901
  norm       = 5.13743
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100035
  Prefactor  = 0.000100002
  Prefactor  = 0.000644798
  norm       = 0.000106617
  Prefactor  = 0.000143993
  norm       = 1.602
  norm       = 0.00130967
  Prefactor  = 0.000106852
  norm       = 3.02574
  norm       = 0.0001
  Prefactor  = 0.00010232
  norm       = 20.2571
  Prefactor  = 0.000101687
  norm       = 14.9127
  norm       = 6.51991
  Prefactor  = 0.000109201
  Prefactor  = 149.915
  norm       = 6.54529
  Prefactor  = 261.554
  Prefactor  = 0.000100131
  Prefactor  = 0.000213369
  Prefactor  = 0.525047
  Prefactor  = 79.8968
  Normalizat = 0.01
  Prefactor  = 1.22402
 **********
 **   18 **HESSE 
 **********

 FCN=   2224.761     FROM HESSE     STATUS=OK           755 CALLS     5008 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25181E-03    140.48        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10149E-03    12.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     375.18        9375.0        .52624E-02   -1.1809    
   4  Prefactor     .32190E-02    5715.2        .98623E-02   -1.5697    
   5  norm          5.1374        5.4480        .44347E-02   -1.5255    
   6  Prefactor    10000.0        1281.6        .90712E-02    1.5698    
   7  Prefactor    10000.0        369.83        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        2133.2        .90712E-02    1.5694    
   9  Prefactor     .10003E-03    10.836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .64480E-03    715.17        .90712E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10662E-03    33.800        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14399E-03    74.116        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6020        1.6246        .83726E-02   -1.5455    
  15  norm          .13097E-02    896.30        .90712E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10685E-03    48.336        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0257        1.0452        .58329E-03   -1.5360    
  18  norm          .10000E-03    9.1323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10232E-03    38.039        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.257        20.800        .22249E-02   -1.4808    
  21  Prefactor     .10169E-03    13.238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.913        5.5937        .25931E-02   -1.4935    
  23  norm          6.5199        3.8453        .39293E-02   -1.5197    
  24  Prefactor     .10920E-03    96.033        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     149.92        285.47        .82299E-03   -1.3253    
  26  norm          6.5453        4.7242        .39207E-02   -1.5196    
  27  Prefactor     261.55        150.46        .62655E-03   -1.2459    
  28  Prefactor     .10013E-03    19.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .21337E-03    561.70        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .52505        11.897        .84171E-01   -1.5563    
  31  Prefactor     79.897        41.117        .11222E-02   -1.3918    
  32  Normalizat    .10000E-01    .54270        .22171       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.2240        .27539        .58258E-01   -.85595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00807e-05
Minuit parameter uncertainties:
  1  0.292757
  2  0.00866846
  3  43671.5
  4  30.7643
  5  5.44857
  6  3.7202
  7  0.386892
  8  6.56655
  9  0.00122983
  10  0.000212269
  11  1.26377
  12  0.0299267
  13  0.114344
  14  1.62464
  15  2.11496
  16  0.036426
  17  1.04516
  18  6.21385e-05
  19  0.0187993
  20  20.8073
  21  0.0094549
  22  5.59386
  23  3.84545
  24  0.0595467
  25  288.162
  26  4.72451
  27  150.688
  28  0.00318128
  29  0.509543
  30  4.99915
  31  41.1316
  32  3.51794e-05
  33  0.275715
Done.

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

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  1.023e-04  1.880e-02  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:  1.224e+00  2.757e-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:  1.000e-02  3.518e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/767970/likelihoodResults_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.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) = 2224.76155499
delta logL = -0.000127016503939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2224.76143133
delta logL = -3.35880940838e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2016       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2237       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=   2224.761     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      319 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    218.10        .18142E-01** at limit **
   2  Index         1.9055        5.1562        .50000        .98589E-07
   3  Normalizat    .10000E-01    .15866E-01    .13399E-01** at limit **
   4  Prefactor     1.2240        .17275E-01    .25752E-03    .17871E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 1.9055
  Normalizat = 0.01
  Prefactor  = 1.22404
 **********
 **   18 **HESSE 
 **********

 FCN=   2224.761     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      348 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1134.6        .32497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9055        5.8882        .50000       -.66734    
   3  Normalizat    .10000E-01    .91107E-01    .53595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2240        .40841E-01    .51503E-04   -.85595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8245e-09
Minuit parameter uncertainties:
  1  0.00904576
  2  2174.16
  3  2.18472e-07
  4  0.0408422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/767970': 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) = 2224.76142764
delta logL = 3.33451225742e-07

Extracting fit parameters...

4FGL J1015.6+5553
   Spectrum: PowerLaw
391    Prefactor:  1.000e-04  9.046e-03  1.000e-04  1.000e+04 ( 1.000e-13)
392        Index:  1.905e+00  2.174e+03  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:  1.224e+00  4.084e-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:  1.000e-02  2.185e-07  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/767970/cmap_HighResolution_603244801_603504001_4FGL_J1015.6+5553_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-02', job_status='DONE', photon_flux_upper_limit='2.38e-07', time_completed='2021-09-01 15:49:38.695898', job_id='767970', GAL2='1.22', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630536578.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1404' AND source_name='4FGL J1015.6+5553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 767970: <4FGL_J1015.6+5553_daily_bin1404> in cluster <slac> Done

Job <4FGL_J1015.6+5553_daily_bin1404> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 15:35:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:36: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:36:20 2021
Terminated at Wed Sep  1 15:49:39 2021
Results reported at Wed Sep  1 15:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1015.6+5553_daily_bin1404 153.911 55.8893 603244801 603504001 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 :                                   642.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            839 sec.

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

