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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1443
RA = 183.774, Dec = 16.9372
tmin = 613353601, tmax = 613612801
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='440422', job_status='RUN', time_executed='2021-09-05 05:33:39.231195', time_epoch_executed='1630845219.23' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440422/ft1_4FGL_J1215.0+1656_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440422/ft1_4FGL_J1215.0+1656_daily_bin1443.fits outfile=/scratch/kocevski/440422/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1443.fits ra=183.774 dec=16.9372 rad=12.0 tmin=613353601.0 tmax=613612801.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 5.56
user 2.49
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.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/440422/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/440422/ft1_filtered_4FGL_J1215.0+1656_daily_bin1443.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440422/ft1_filtered_4FGL_J1215.0+1656_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/440422/ltcube_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.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/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.fits
.....................!
real 12.62
user 11.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440422/ft1_filtered_4FGL_J1215.0+1656_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/440422/ltcube_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.fits outfile=/scratch/kocevski/440422/expmap_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.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/440422/ltcube_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.fits
.....................!
real 192.73
user 186.07
sys 4.60

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/440422/ft1_filtered_4FGL_J1215.0+1656_daily_bin1443.fits scfile=/scratch/kocevski/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.fits outfile=/scratch/kocevski/440422/cmap_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.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 4.04
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440422/ft1_filtered_4FGL_J1215.0+1656_daily_bin1443.fits scfile=/scratch/kocevski/440422/ft2_4FGL_J1215.0+1656_daily_bin1443.fits outfile=/scratch/kocevski/440422/cmap_HighResolution_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.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.11
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25216E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.262       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.353       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2973       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16932E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .11363       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9998       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1998       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69055       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2667       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=   8032.158     FROM MIGRAD    STATUS=CONVERGED   1117 CALLS     3671 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.905        34.422        .70936E-04    .17309E-04
   2  Prefactor     .10000E-03    132.04        .49509E-02** at limit **
   3  Prefactor     .35119        9.7061        .32294E-02    .44449E-03
   4  Prefactor     .10000E-03    .97256        .13961E-02** at limit **
   5  Prefactor     71.256        92.771        .47555E-04    .12192E-04
   6  Prefactor     15.354        9.6402        .10222E-03   -.19464E-04
   7  Prefactor     9.4657        11.527        .65129E-03   -.12530E-03
   8  Prefactor     1.7692        3.5186        .21726E-03   -.17776E-03
   9  Prefactor     .10000E-03    29.583        .18142E-02** at limit **
  10  Prefactor     .66165        1.8750        .19172E-03    .15400E-03
  11  Prefactor     5.2973        2.8121        .10126E-03   -.64110E-04
  12  Prefactor     .10000E-03    19.746        .18142E-02** at limit **
  13  Prefactor     4.4913        2.0181        .82382E-04   -.16105E-03
  14  Prefactor     .10000E-03    6.9229        .18142E-02** at limit **
  15  Prefactor     .10012E-03    3.1615        .47661E-01** at limit **
  16  norm          .11366        .12973        .36113E-03    .27714E-02
  17  Prefactor     .10000E-03    29.054        .18142E-02** at limit **
  18  norm          2.0005        3.0396        .18264E-03   -.27887E-03
  19  Prefactor     3.2001        3.7812        .18475E-03    .49044E-04
  20  Prefactor     .10000E-03    6.9722        .18142E-02** at limit **
  21  Prefactor     .10000E-03    24.530        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.3838        .18142E-02** at limit **
  23  Prefactor     .10000E-03    13.112        .36285E-03** at limit **
  24  Prefactor     16.619        11.674        .98243E-04   -.18515E-05
  25  Normalizat    .69049        .17930        .28788E-03   -.16270E-03
  26  Prefactor     1.2667        .17689        .22388E-03   -.24807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9053
  Prefactor  = 0.000100001
  Prefactor  = 0.351193
  Prefactor  = 0.0001
  Prefactor  = 71.2557
  Prefactor  = 15.3536
  Prefactor  = 9.46572
  Prefactor  = 1.76918
  Prefactor  = 0.0001
  Prefactor  = 0.661646
  Prefactor  = 5.29726
  Prefactor  = 0.0001
  Prefactor  = 4.49133
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  norm       = 0.113656
  Prefactor  = 0.0001
  norm       = 2.00053
  Prefactor  = 3.20013
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6188
  Normalizat = 0.690486
  Prefactor  = 1.26669
 **********
 **   18 **HESSE 
 **********

 FCN=   8032.158     FROM HESSE     STATUS=OK           444 CALLS     4115 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.905        34.423        .28374E-05   -1.4578    
   2  Prefactor     .10000E-03    135.54        .19804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .35119        9.7337        .12918E-03   -1.5589    
   4  Prefactor     .10000E-03    .97384        .27922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.256        92.757        .95110E-05   -1.4018    
   6  Prefactor     15.354        9.6393        .40887E-05   -1.4924    
   7  Prefactor     9.4657        11.525        .26051E-04   -1.5093    
   8  Prefactor     1.7692        3.5153        .86904E-05   -1.5442    
   9  Prefactor     .10000E-03    29.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .66165        1.8738        .76688E-05   -1.5545    
  11  Prefactor     5.2973        2.8112        .40502E-05   -1.5248    
  12  Prefactor     .10000E-03    19.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4913        2.0181        .32953E-05   -1.5284    
  14  Prefactor     .10000E-03    6.9230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    3.1479        .47816E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11366        .12963        .14445E-04   -1.5641    
  17  Prefactor     .10000E-03    29.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0005        3.0391        .73055E-05   -1.5425    
  19  Prefactor     3.2001        3.7811        .73900E-05   -1.5350    
  20  Prefactor     .10000E-03    6.9727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.113        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.619        11.673        .39297E-05   -1.4892    
  25  Normalizat    .69049        .17925        .11515E-04   -1.0427    
  26  Prefactor     1.2667        .17700        .44775E-04   -.84303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52829e-10
Minuit parameter uncertainties:
  1  34.4445
  2  0.000612005
  3  3.69793
  4  1.90266e-05
  5  92.9458
  6  9.6403
  7  11.5279
  8  3.51572
  9  8.07276e-05
  10  1.87395
  11  2.81125
  12  7.59834e-05
  13  2.0181
  14  2.62836e-05
  15  0.00122958
  16  0.129634
  17  5.233e-05
  18  3.03929
  19  3.78139
  20  3.73532e-05
  21  0.000297794
  22  2.09576e-05
  23  4.47167e-05
  24  11.6744
  25  0.1794
  26  0.177081
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.297e+00  2.811e+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.267e+00  1.771e-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:  6.905e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.13e-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) = 8031.88423459
delta logL = 0.273946164888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8031.88306978
delta logL = 0.275110975028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6822       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1066       1.0000          .0000       10.000    
     3 'Normalizat'    .70892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2521       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=   8031.883     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      271 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6811        76.287        .38807E-02    .24824E-03
   2  Index         2.1064        3.4200        .17311        .80406E-04
   3  Normalizat    .70892        .99541E-01    .64285E-01    .55963E-04
   4  Prefactor     1.2521        .89517E-01    .50874E-01   -.14173E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.68108
  Index      = 2.10642
  Normalizat = 0.708918
  Prefactor  = 1.25214
 **********
 **   18 **HESSE 
 **********

 FCN=   8031.883     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6811        3.6430        .11423E-03   -1.5191    
   2  Index         2.1064        .38585        .64705E-02   -.61715    
   3  Normalizat    .70892        .17294        .28441E-03   -1.0354    
   4  Prefactor     1.2521        .17698        .22491E-03   -.84742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39218e-11
Minuit parameter uncertainties:
  1  3.6431
  2  0.38643
  3  0.173077
  4  0.177065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440422': 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) = 8031.88306957
delta logL = 0.275111187351

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  6.681e+00  3.643e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.106e+00  3.864e-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.252e+00  1.771e-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:  7.089e-01  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.06
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.11 +/- 0.39
Photon Flux (Free Index): 5.53e-08 +/- 3.29e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.20e-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/440422/cmap_HighResolution_613353601_613612801_4FGL_J1215.0+1656_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='2.99e-05', photon_flux_error='3.50e-08', dlogl='2.75e-01', energy_flux='2.14e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-09-05 05:47:37.669307', photon_index_error2='0.39', photon_index2='2.11', ts='6.51', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='0.69', time_epoch_completed='1630846057.67', return_code='0', job_id='440422', GAL2='1.25', EG2='0.71', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.29e-08', ts2='7.06', photon_index='2.41' WHERE bin_id='1443' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 440422: <4FGL_J1215.0+1656_daily_bin1443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1443 183.774 16.9372 613353601 613612801 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 :                                   811.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

