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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin85
RA = 183.774, Dec = 16.9372
tmin = 261360001, tmax = 261619201
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='433837', job_status='RUN', time_executed='2021-09-05 05:14:08.585502', time_epoch_executed='1630844048.59' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433837/ft1_4FGL_J1215.0+1656_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433837/ft1_4FGL_J1215.0+1656_daily_bin85.fits outfile=/scratch/kocevski/433837/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin85.fits ra=183.774 dec=16.9372 rad=12.0 tmin=261360001.0 tmax=261619201.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.92
user 1.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433837/ft1_filtered_4FGL_J1215.0+1656_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/433837/ltcube_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.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/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits
.....................!
real 13.11
user 12.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433837/ft1_filtered_4FGL_J1215.0+1656_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/433837/ltcube_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.fits outfile=/scratch/kocevski/433837/expmap_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.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/433837/ltcube_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.fits
.....................!
real 192.64
user 187.06
sys 4.98

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/433837/ft1_filtered_4FGL_J1215.0+1656_daily_bin85.fits scfile=/scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits outfile=/scratch/kocevski/433837/cmap_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433837/ft1_filtered_4FGL_J1215.0+1656_daily_bin85.fits scfile=/scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits outfile=/scratch/kocevski/433837/cmap_HighResolution_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433837/ft1_filtered_4FGL_J1215.0+1656_daily_bin85.fits', '/scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits', expMap='/scratch/kocevski/433837/expmap_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.fits', expCube='/scratch/kocevski/433837/ltcube_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433837/Model_4FGL_J1215.0+1656_daily_bin85.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/433837/ft1_filtered_4FGL_J1215.0+1656_daily_bin85.fits
Spacecraft file(s): /scratch/kocevski/433837/ft2_4FGL_J1215.0+1656_daily_bin85.fits
Exposure map: /scratch/kocevski/433837/expmap_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.fits
Exposure cube: /scratch/kocevski/433837/ltcube_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433837/Model_4FGL_J1215.0+1656_daily_bin85.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) = 9519.84614954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13413E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7570       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30353       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12250E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9280       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4928       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5185       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1977       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3454       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98146       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1741       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=   9519.789     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     2760 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.270       -.19503E-07** at limit **
   2  Prefactor     .10000E-03    11.609        .29265E-07** at limit **
   3  Prefactor     .10000E-03    3.1192        .62442E-07** at limit **
   4  Prefactor     1.5921        1.0912        .38659E-08   -.21097E-04
   5  Prefactor     .10000E-03    293.20       -.31110E-06** at limit **
   6  Prefactor     1.0930        6.8638        .14358E-05   -.51070E-03
   7  Prefactor     2.7746        26.884       -.54030E-05   -.57679E-04
   8  Prefactor     .10001E-03    1.5485        .47467E-06** at limit **
   9  Prefactor     16.558        135.63        .14572E-04   -.46328E-05
  10  Prefactor     .30701        1.3797       -.18543E-06   -.48911E-04
  11  Prefactor     5.6216        3.2239        .39999E-07    .60265E-04
  12  Prefactor     .10006E-03    11.952        .52442E-06** at limit **
  13  Prefactor     1.9281        1.5891       -.32372E-07    .25699E-05
  14  Prefactor     .10000E-03    7.9238       -.21226E-07** at limit **
  15  Prefactor     .10000E-03    2.2871        .25062E-06** at limit **
  16  norm          1.4424        .28788       -.13381E-07   -.12184E-03
  17  Prefactor     .10000E-03    31.509       -.15910E-08** at limit **
  18  norm          3.4929        3.5942        .12062E-05    .60525E-03
  19  Prefactor     8.5190        6.5868       -.21904E-07   -.31511E-05
  20  Prefactor     .10000E-03    10.412       -.76222E-07** at limit **
  21  Prefactor     .10000E-03    11.052        .16067E-07** at limit **
  22  Prefactor     .10000E-03    2.8858       -.38965E-06** at limit **
  23  Prefactor     1.2005        16.843        .72462E-06    .10135E-04
  24  Prefactor     4.3456        10.363       -.37207E-07    .41012E-04
  25  Normalizat    .98153        .16079        .23477E-06    .10062E-03
  26  Prefactor     1.1740        .14712       -.54177E-07    .13912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.59213
  Prefactor  = 0.000100001
  Prefactor  = 1.09297
  Prefactor  = 2.77456
  Prefactor  = 0.000100007
  Prefactor  = 16.5584
  Prefactor  = 0.30701
  Prefactor  = 5.62161
  Prefactor  = 0.000100062
  Prefactor  = 1.92812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44241
  Prefactor  = 0.0001
  norm       = 3.49294
  Prefactor  = 8.51896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20051
  Prefactor  = 4.34559
  Normalizat = 0.981525
  Prefactor  = 1.17396
 **********
 **   18 **HESSE 
 **********

 FCN=   9519.789     FROM HESSE     STATUS=OK           478 CALLS     3238 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.399        .32990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5921        1.0915        .33623E-04   -1.5456    
   5  Prefactor     .10000E-03    295.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0930        29.264        .38727E-02   -1.5499    
   7  Prefactor     2.7746        26.937        .24515E-03   -1.5375    
   8  Prefactor     .10001E-03    9.0749        .21746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.558        160.27        .98096E-04   -1.4894    
  10  Prefactor     .30701        5.7244        .18744E-02   -1.5597    
  11  Prefactor     5.6216        3.2665        .11233E-03   -1.5234    
  12  Prefactor     .10006E-03    12.872        .11531       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9281        1.5905        .10833E-03   -1.5430    
  14  Prefactor     .10000E-03    7.9280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3119        .14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4424        .28824        .21966E-04   -1.5468    
  17  Prefactor     .10000E-03    31.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4929        3.6437        .91508E-03   -1.5334    
  19  Prefactor     8.5190        6.5857        .13735E-03   -1.5124    
  20  Prefactor     .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2343        .31979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2005        16.882        .41519E-03   -1.5489    
  24  Prefactor     4.3456        10.292        .19323E-03   -1.5291    
  25  Normalizat    .98153        .18437        .27462E-03   -.93652    
  26  Prefactor     1.1740        .17167        .24977E-03   -.87136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1683e-08
Minuit parameter uncertainties:
  1  2.83572e-05
  2  4.23253e-05
  3  0.000219685
  4  1.09152
  5  0.00106892
  6  11.3166
  7  17.3002
  8  0.000498193
  9  103.395
  10  2.65124
  11  3.26662
  12  0.00178763
  13  1.59057
  14  1.37216e-06
  15  3.85611e-06
  16  0.288237
  17  1.57064e-05
  18  3.64391
  19  6.58623
  20  5.92136e-05
  21  1.94255e-05
  22  6.64443e-05
  23  9.00636
  24  10.296
  25  0.184486
  26  0.171755
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.622e+00  3.267e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.174e+00  1.718e-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:  9.815e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.60
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.32e-05

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) = 9519.78618503
delta logL = 0.00239399532256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9519.78412761
delta logL = 0.00445141730415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4021       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4662       1.0000          .0000       10.000    
     3 'Normalizat'    .97711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1770       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.

 FCN=   9519.784     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4017        48.202        .43224E-02    .37086E-03
   2  Index         2.4664        3.5800        .13918        .15664E-03
   3  Normalizat    .97710        .92026E-01    .45879E-01    .11781E-04
   4  Prefactor     1.1770        .61904E-01    .56425E-01   -.14435E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4017
  Index      = 2.46636
  Normalizat = 0.977102
  Prefactor  = 1.17704
 **********
 **   18 **HESSE 
 **********

 FCN=   9519.784     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4017        3.9779        .10910E-03   -1.5243    
   2  Index         2.4664        .65258        .76266E-02   -.53139    
   3  Normalizat    .97710        .18106        .27515E-03   -.93802    
   4  Prefactor     1.1770        .17438        .24950E-03   -.87041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48598e-11
Minuit parameter uncertainties:
  1  3.97813
  2  0.655097
  3  0.181174
  4  0.174469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433837': 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) = 9519.78412757
delta logL = 0.00445146082166

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.402e+00  3.978e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.466e+00  6.551e-01  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:  1.177e+00  1.745e-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:  9.771e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.61
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.47 +/- 0.66
Photon Flux (Free Index): 7.31e-08 +/- 4.82e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.35e-05

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/433837/cmap_HighResolution_261360001_261619201_4FGL_J1215.0+1656_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='2.20e-05', photon_flux_error='4.07e-08', dlogl='4.45e-03', energy_flux='2.27e-05', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-09-05 05:27:32.175554', photon_index_error2='0.66', photon_index2='2.47', ts='6.60', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.98', time_epoch_completed='1630844852.18', return_code='0', job_id='433837', GAL2='1.18', EG2='0.98', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.82e-08', ts2='6.61', photon_index='2.41' WHERE bin_id='85' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:27:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 433837: <4FGL_J1215.0+1656_daily_bin85> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin85> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:11:04 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:11:06 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:06 2021
Terminated at Sun Sep  5 05:27:32 2021
Results reported at Sun Sep  5 05:27:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin85 183.774 16.9372 261360001 261619201 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

