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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin48
RA = 183.774, Dec = 16.9372
tmin = 251769601, tmax = 252028801
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='433787', job_status='RUN', time_executed='2021-09-05 05:12:51.613294', time_epoch_executed='1630843971.61' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433787/ft1_4FGL_J1215.0+1656_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433787/ft1_4FGL_J1215.0+1656_daily_bin48.fits outfile=/scratch/kocevski/433787/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin48.fits ra=183.774 dec=16.9372 rad=12.0 tmin=251769601.0 tmax=252028801.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.18
user 1.99
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.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/433787/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin48.fits evtable="EVENTS" outfile="/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/433787/ltcube_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.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/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits
.....................!
real 12.47
user 12.16
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/433787/ltcube_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.fits outfile=/scratch/kocevski/433787/expmap_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.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/433787/ltcube_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.fits
.....................!
real 189.70
user 184.97
sys 4.21

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

Setting source of interest to:
4FGL J1215.0+1656 @ 183.774 16.9372

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits scfile=/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits outfile=/scratch/kocevski/433787/cmap_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.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=183.774 yref=16.9372 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits scfile=/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits outfile=/scratch/kocevski/433787/cmap_HighResolution_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.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=183.774 yref=16.9372 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433787/Model_4FGL_J1215.0+1656_daily_bin48.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/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits.....................!
real 73.18
user 71.78
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits', '/scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits', expMap='/scratch/kocevski/433787/expmap_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.fits', expCube='/scratch/kocevski/433787/ltcube_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433787/Model_4FGL_J1215.0+1656_daily_bin48.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1215.0+1656'

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.342e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433787/ft1_filtered_4FGL_J1215.0+1656_daily_bin48.fits
Spacecraft file(s): /scratch/kocevski/433787/ft2_4FGL_J1215.0+1656_daily_bin48.fits
Exposure map: /scratch/kocevski/433787/expmap_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.fits
Exposure cube: /scratch/kocevski/433787/ltcube_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433787/Model_4FGL_J1215.0+1656_daily_bin48.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) = 8628.43034624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8663       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11551E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    121.12       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.825       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6107       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13274E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3869       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8628.415     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3133 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.198        28.269       -.23881E-06    .51131E-04
   2  Prefactor     .10000E-03    5.7541       -.16193E-07** at limit **
   3  Prefactor     .10000E-03    3.5716        .18040E-06** at limit **
   4  Prefactor     1.2117        1.1073        .21512E-07    .49520E-03
   5  Prefactor     .10000E-03    31.568       -.46271E-06** at limit **
   6  Prefactor     .10000E-03    4.3472        .61241E-06** at limit **
   7  Prefactor     .10000E-03    5.1393        .66929E-06** at limit **
   8  Prefactor     4.0872        3.1891       -.58371E-06    .32188E-03
   9  Prefactor     .10001E-03    78.728       -.18033E-06** at limit **
  10  Prefactor     2.2558        2.1615       -.84783E-07   -.10587E-03
  11  Prefactor     .10000E-03    .90344        .21156E-06** at limit **
  12  Prefactor     26.551        20.873        .91673E-07    .10917E-03
  13  Prefactor     6.8665        2.2926       -.60314E-07   -.22633E-03
  14  Prefactor     .10000E-03    6.3446       -.35748E-08** at limit **
  15  Prefactor     .10000E-03    1.9484        .14390E-06** at limit **
  16  norm          .10000E-03    .69499E-01   -.33964E-07** at limit **
  17  Prefactor     121.12        86.369        .13181E-06    .10272E-04
  18  norm          2.0048        1.9816       -.96193E-07   -.27209E-03
  19  Prefactor     .10000E-03    4.0024        .47918E-06** at limit **
  20  Prefactor     64.825        28.462       -.12923E-05   -.73758E-03
  21  Prefactor     .10000E-03    12.950        .18043E-06** at limit **
  22  Prefactor     2.6102        5.0059       -.40762E-05    .42771E-03
  23  Prefactor     .10000E-03    52.740        .25714E-04** at limit **
  24  Prefactor     7.3839        12.999       -.23589E-05   -.88714E-03
  25  Normalizat    1.0281        .15406        .11934E-05   -.19798E-03
  26  Prefactor     .97458        .14369        .38712E-06   -.18614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21173
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.08717
  Prefactor  = 0.000100006
  Prefactor  = 2.2558
  Prefactor  = 0.0001
  Prefactor  = 26.551
  Prefactor  = 6.86647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 121.125
  norm       = 2.00476
  Prefactor  = 0.0001
  Prefactor  = 64.8246
  Prefactor  = 0.0001
  Prefactor  = 2.61019
  Prefactor  = 0.000100003
  Prefactor  = 7.38389
  Normalizat = 1.02813
  Prefactor  = 0.974583
 **********
 **   18 **HESSE 
 **********

 FCN=   8628.415     FROM HESSE     STATUS=OK           454 CALLS     3587 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.198        28.262        .65708E-04   -1.4487    
   2  Prefactor     .10000E-03    5.7615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5888        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2117        1.1106        .90173E-04   -1.5488    
   5  Prefactor     .10000E-03    31.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0872        3.1825        .68521E-03   -1.5304    
   9  Prefactor     .10001E-03    78.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2558        2.1394        .12504E-03   -1.5408    
  11  Prefactor     .10000E-03    .91439        .86113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.551        20.874        .77745E-04   -1.4677    
  13  Prefactor     6.8665        2.2919        .78735E-04   -1.5184    
  14  Prefactor     .10000E-03    6.3458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0646        .25038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .49225        .46772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     121.12        86.368        .36569E-04   -1.3502    
  18  norm          2.0048        1.9771        .12576E-03   -1.5425    
  19  Prefactor     .10000E-03    4.0237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     64.825        28.651        .49844E-04   -1.4096    
  21  Prefactor     .10000E-03    12.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6102        5.0154        .12623E-02   -1.5385    
  23  Prefactor     .10000E-03    51.605        .44662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.3839        13.022        .14757E-03   -1.5164    
  25  Normalizat    1.0281        .17489        .25065E-03   -.92094    
  26  Prefactor     .97458        .16443        .24982E-03   -.93582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04848e-09
Minuit parameter uncertainties:
  1  28.2724
  2  8.46845e-06
  3  2.43697e-05
  4  1.11059
  5  1.78282e-05
  6  0.000100059
  7  9.15731e-05
  8  3.18264
  9  0.00138045
  10  2.13949
  11  1.41798e-05
  12  20.8795
  13  2.29188
  14  2.16736e-06
  15  3.8915e-06
  16  3.70504e-06
  17  86.458
  18  1.97715
  19  6.33608e-05
  20  28.6574
  21  2.05039e-05
  22  5.01624
  23  0.000815661
  24  13.0271
  25  0.174987
  26  0.164515
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.418e-05  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.746e-01  1.645e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.028e+00  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433787/likelihoodResults_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.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) = 8628.42066995
delta logL = -0.00519432931833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8628.41547561
delta logL = 8.86757334229e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4080       1.0000          .0000       10.000    
     3 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   8628.415     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    35.311        .86133E-03** at limit **
   2  Index         2.3957        8.1583        .50000        .15565E-04
   3  Normalizat    1.0281        .24190E-01    .25065E-03    .27668E-04
   4  Prefactor     .97458        .23656E-01    .24982E-03    .50423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.39566
  Normalizat = 1.02813
  Prefactor  = 0.974583
 **********
 **   18 **HESSE 
 **********

 FCN=   8628.415     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    132.37        .17227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3957        5.0531        .50000       -.54787    
   3  Normalizat    1.0281        .57162E-01    .10026E-04   -.92094    
   4  Prefactor     .97458        .55782E-01    .99926E-05   -.93582    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61667e-08
Minuit parameter uncertainties:
  1  0.00432168
  2  652.465
  3  0.0571651
  4  0.0557848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433787': 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) = 8628.41547558
delta logL = 3.90500645153e-08

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.322e-03  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.396e+00  6.525e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.746e-01  5.578e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.028e+00  5.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.774 16.937

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/433787/cmap_HighResolution_251769601_252028801_4FGL_J1215.0+1656_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-05 05:27:39.142835', job_id='433787', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630844859.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='48' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:27:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 433787: <4FGL_J1215.0+1656_daily_bin48> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin48> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:11:01 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:11:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:11:02 2021
Terminated at Sun Sep  5 05:27:39 2021
Results reported at Sun Sep  5 05:27:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin48 183.774 16.9372 251769601 252028801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1215.0+1656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

