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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1118
RA = 183.774, Dec = 16.9372
tmin = 529113601, tmax = 529372801
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='439996', job_status='RUN', time_executed='2021-09-05 05:33:54.702004', time_epoch_executed='1630845234.7' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439996/ft1_4FGL_J1215.0+1656_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439996/ft1_4FGL_J1215.0+1656_daily_bin1118.fits outfile=/scratch/kocevski/439996/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1118.fits ra=183.774 dec=16.9372 rad=12.0 tmin=529113601.0 tmax=529372801.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 4.01
user 3.60
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.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/439996/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1118.fits evtable="EVENTS" outfile="/scratch/kocevski/439996/ft1_filtered_4FGL_J1215.0+1656_daily_bin1118.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.73
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439996/ft1_filtered_4FGL_J1215.0+1656_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/439996/ltcube_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.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/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.fits
.....................!
real 12.20
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439996/ft1_filtered_4FGL_J1215.0+1656_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/439996/ltcube_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.fits outfile=/scratch/kocevski/439996/expmap_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.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/439996/ltcube_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.fits
.....................!
real 198.41
user 187.11
sys 4.99

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/439996/ft1_filtered_4FGL_J1215.0+1656_daily_bin1118.fits scfile=/scratch/kocevski/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.fits outfile=/scratch/kocevski/439996/cmap_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.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 1.03
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439996/ft1_filtered_4FGL_J1215.0+1656_daily_bin1118.fits scfile=/scratch/kocevski/439996/ft2_4FGL_J1215.0+1656_daily_bin1118.fits outfile=/scratch/kocevski/439996/cmap_HighResolution_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.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 1.23
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10806E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.497       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    101.54       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5290       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.900       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .40028E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.669       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.365       1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.768       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15186E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.523       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0044       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=   5183.559     FROM MIGRAD    STATUS=CONVERGED   1086 CALLS     3568 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    383.80        .88426E-02** at limit **
   2  Prefactor     .10000E-03    12.969        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.9423        .13944E-02** at limit **
   4  Prefactor     1.2662        1.2561        .77349E-04    .45564E-04
   5  Prefactor     .10000E-03    55.116        .18142E-02** at limit **
   6  Prefactor     18.129        12.457        .94067E-04    .10394E-04
   7  Prefactor     19.497        20.199        .90708E-04    .12909E-04
   8  Prefactor     .10000E-03    .98918        .69752E-03** at limit **
   9  Prefactor     101.54        113.84        .39900E-04   -.17837E-04
  10  Prefactor     1.3226        1.5967        .97319E-04    .24555E-03
  11  Prefactor     3.5293        2.4490        .90101E-04    .25791E-03
  12  Prefactor     .10000E-03    9.8314        .18142E-02** at limit **
  13  Prefactor     1.6643        2.1962        .11940E-03    .10903E-03
  14  Prefactor     10.910        37.413        .12135E-03   -.65203E-04
  15  Prefactor     .10000E-03    1.8606        .95842E-03** at limit **
  16  norm          .39924E-01    .13808        .46126E-03    .19286E-02
  17  Prefactor     .10000E-03    98.484        .18142E-02** at limit **
  18  norm          5.0188        4.2462        .13179E-03    .31720E-03
  19  Prefactor     16.669        10.948        .98099E-04    .19701E-05
  20  Prefactor     21.366        23.988        .86655E-04    .45918E-05
  21  Prefactor     52.756        65.284        .55213E-04    .57654E-06
  22  Prefactor     .10000E-03    3.2582        .12678E-02** at limit **
  23  Prefactor     .10000E-03    24.616        .36285E-03** at limit **
  24  Prefactor     10.522        10.160        .12351E-03   -.72714E-04
  25  Normalizat    1.1396        .24128        .25199E-03    .34075E-03
  26  Prefactor     1.0044        .23941        .26564E-03    .86880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26623
  Prefactor  = 0.0001
  Prefactor  = 18.1286
  Prefactor  = 19.4968
  Prefactor  = 0.0001
  Prefactor  = 101.542
  Prefactor  = 1.32261
  Prefactor  = 3.52932
  Prefactor  = 0.0001
  Prefactor  = 1.6643
  Prefactor  = 10.9104
  Prefactor  = 0.0001
  norm       = 0.0399237
  Prefactor  = 0.000100005
  norm       = 5.0188
  Prefactor  = 16.6687
  Prefactor  = 21.3656
  Prefactor  = 52.756
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.5219
  Normalizat = 1.13959
  Prefactor  = 1.00445
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.559     FROM HESSE     STATUS=OK           432 CALLS     4000 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    401.36        .35370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9425        .27888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2662        1.2561        .30940E-05   -1.5483    
   5  Prefactor     .10000E-03    55.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.129        12.456        .37627E-05   -1.4856    
   7  Prefactor     19.497        20.196        .36283E-05   -1.4825    
   8  Prefactor     .10000E-03    .98921        .13950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     101.54        113.83        .79799E-05   -1.3689    
  10  Prefactor     1.3226        1.5966        .38927E-05   -1.5478    
  11  Prefactor     3.5293        2.4488        .36040E-05   -1.5332    
  12  Prefactor     .10000E-03    9.8315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6643        2.1961        .47758E-05   -1.5450    
  14  Prefactor     10.910        37.402        .48541E-05   -1.5047    
  15  Prefactor     .10000E-03    1.8606        .19168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .39924E-01    .13786        .18450E-04   -1.5668    
  17  Prefactor     .10000E-03    98.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0188        4.2460        .52714E-05   -1.5260    
  19  Prefactor     16.669        10.948        .39240E-05   -1.4891    
  20  Prefactor     21.366        23.983        .34662E-05   -1.4783    
  21  Prefactor     52.756        65.278        .11043E-04   -1.4254    
  22  Prefactor     .10000E-03    3.2583        .25355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.617        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.522        10.160        .49406E-05   -1.5059    
  25  Normalizat    1.1396        .24134        .50397E-04   -.88491    
  26  Prefactor     1.0044        .23963        .10625E-04   -.92581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64781e-10
Minuit parameter uncertainties:
  1  0.00021421
  2  7.50536e-06
  3  5.44137e-06
  4  1.25614
  5  0.000289519
  6  12.4581
  7  20.2035
  8  4.59682e-07
  9  114.079
  10  1.59667
  11  2.44891
  12  7.90164e-07
  13  2.1962
  14  37.4829
  15  9.67091e-07
  16  0.13786
  17  0.00139322
  18  4.24621
  19  10.9497
  20  23.9943
  21  65.3662
  22  2.34893e-06
  23  0.000429585
  24  10.1617
  25  0.241575
  26  0.239882
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.529e+00  2.449e+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.004e+00  2.399e-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.140e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.03
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 9.87e-06

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) = 5181.43711121
delta logL = 2.12207367264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5181.42159448
delta logL = 2.13759040052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0073       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3343       1.0000          .0000       10.000    
     3 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98857       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=   5181.422     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0078        2.2534        .58513E-02   -.15765E-03
   2  Index         1.3343        .34365        .16508       -.58584E-04
   3  Normalizat    1.1715        .20040        .56301E-01    .12371E-04
   4  Prefactor     .98857        .20059        .46124E-01    .14655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00776
  Index      = 1.33426
  Normalizat = 1.17146
  Prefactor  = 0.988567
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.422     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0078        2.7927        .87741E-04   -1.5361    
   2  Index         1.3343        .45376        .68358E-02   -.82294    
   3  Normalizat    1.1715        .23592        .24897E-03   -.87489    
   4  Prefactor     .98857        .23621        .26745E-03   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05535e-12
Minuit parameter uncertainties:
  1  2.79285
  2  0.455116
  3  0.236138
  4  0.236454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439996': 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) = 5181.42159444
delta logL = 2.13759043833

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.008e+00  2.793e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.334e+00  4.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:  9.886e-01  2.365e-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.171e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.31
Ra Dec: 183.774 16.937
Photon Index (Free Index): 1.33 +/- 0.46
Photon Flux (Free Index): 1.42e-08 +/- 1.28e-08
Energy Flux (Free Index): 7.77e-05 +/- 9.16e-05

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/439996/cmap_HighResolution_529113601_529372801_4FGL_J1215.0+1656_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='7.77e-05', photon_flux_error='3.05e-08', dlogl='2.14e+00', energy_flux='1.42e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-05 05:45:59.493795', photon_index_error2='0.46', photon_index2='1.33', ts='7.03', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='9.16e-05', EG='1.14', time_epoch_completed='1630845959.49', return_code='0', job_id='439996', GAL2='0.99', EG2='1.17', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='1.28e-08', ts2='11.31', photon_index='2.41' WHERE bin_id='1118' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 439996: <4FGL_J1215.0+1656_daily_bin1118> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1118> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:30:35 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:30:37 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:30:37 2021
Terminated at Sun Sep  5 05:46:00 2021
Results reported at Sun Sep  5 05:46:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1118 183.774 16.9372 529113601 529372801 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 :                                   644.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

