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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1004
RA = 183.774, Dec = 16.9372
tmin = 499564801, tmax = 499824001
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='438852', job_status='RUN', time_executed='2021-09-05 05:28:11.802104', time_epoch_executed='1630844891.8' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438852

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438852/ft1_4FGL_J1215.0+1656_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438852/ft1_4FGL_J1215.0+1656_daily_bin1004.fits outfile=/scratch/kocevski/438852/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1004.fits ra=183.774 dec=16.9372 rad=12.0 tmin=499564801.0 tmax=499824001.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.03
user 4.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.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/438852/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/438852/ft1_filtered_4FGL_J1215.0+1656_daily_bin1004.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438852/ft1_filtered_4FGL_J1215.0+1656_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/438852/ltcube_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.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/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.fits
.....................!
real 12.03
user 11.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438852/ft1_filtered_4FGL_J1215.0+1656_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/438852/ltcube_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.fits outfile=/scratch/kocevski/438852/expmap_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.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/438852/ltcube_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.fits
.....................!
real 193.25
user 188.58
sys 4.32

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/438852/ft1_filtered_4FGL_J1215.0+1656_daily_bin1004.fits scfile=/scratch/kocevski/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.fits outfile=/scratch/kocevski/438852/cmap_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438852/ft1_filtered_4FGL_J1215.0+1656_daily_bin1004.fits scfile=/scratch/kocevski/438852/ft2_4FGL_J1215.0+1656_daily_bin1004.fits outfile=/scratch/kocevski/438852/cmap_HighResolution_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18328E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63217E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5047       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7464       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18394       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.409       1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.039       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93545       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97362       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=   4566.784     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3124 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    211.90       -.73810E-04** at limit **
   2  Prefactor     52.915        32.737        .11589E-05   -.31145E-04
   3  Prefactor     .10000E-03    11.390        .40106E-06** at limit **
   4  Prefactor     .10000E-03    .84230        .36899E-07** at limit **
   5  Prefactor     .10001E-03    401.75        .33499E-03** at limit **
   6  Prefactor     .10000E-03    5.3085       -.16401E-08** at limit **
   7  Prefactor     .10000E-03    6.2424       -.44336E-07** at limit **
   8  Prefactor     1.5059        4.1232        .11182E-05   -.61489E-03
   9  Prefactor     .10000E-03    74.962        .41485E-05** at limit **
  10  Prefactor     .81250        3.1390       -.13416E-07   -.91464E-03
  11  Prefactor     3.7484        4.7210        .10237E-05   -.48437E-03
  12  Prefactor     .10000E-03    11.857       -.77638E-07** at limit **
  13  Prefactor     1.4474        2.3960        .41775E-06   -.49862E-03
  14  Prefactor     .10001E-03    20.612       -.27424E-05** at limit **
  15  Prefactor     .10000E-03    2.7560        .95899E-08** at limit **
  16  norm          .18401        .22782        .25189E-06   -.41194E-03
  17  Prefactor     51.810        123.26        .35745E-03    .15596E-04
  18  norm          .10000E-03    3.6889        .17832E-06** at limit **
  19  Prefactor     .10000E-03    6.5892       -.26114E-06** at limit **
  20  Prefactor     29.953        35.325        .48116E-05   -.59535E-04
  21  Prefactor     .10000E-03    21.361        .20400E-06** at limit **
  22  Prefactor     .10000E-03    4.4197        .95462E-07** at limit **
  23  Prefactor     12.049        15.882        .94683E-05   -.75669E-04
  24  Prefactor     .10000E-03    5.8488       -.17588E-06** at limit **
  25  Normalizat    .93517        .20448       -.47589E-05   -.40098E-03
  26  Prefactor     .97366        .18834       -.75096E-05   -.81452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100077
  Prefactor  = 52.9154
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.50591
  Prefactor  = 0.0001
  Prefactor  = 0.812504
  Prefactor  = 3.74843
  Prefactor  = 0.0001
  Prefactor  = 1.44736
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.184013
  Prefactor  = 51.8101
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0487
  Prefactor  = 0.0001
  Normalizat = 0.935166
  Prefactor  = 0.973664
 **********
 **   18 **HESSE 
 **********

 FCN=   4566.784     FROM HESSE     STATUS=OK           452 CALLS     3576 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    218.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.915        32.769        .55126E-04   -1.4252    
   3  Prefactor     .10000E-03    11.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .84934        .60460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    404.88        .18860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3572        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2486        .16490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5059        4.0359        .20749E-03   -1.5463    
   9  Prefactor     .10000E-03    75.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .81250        2.8872        .18945E-03   -1.5528    
  11  Prefactor     3.7484        4.4685        .13496E-03   -1.5321    
  12  Prefactor     .10000E-03    11.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4474        2.3669        .13040E-03   -1.5467    
  14  Prefactor     .10001E-03    20.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7808        .10955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .18401        .21396        .34125E-03   -1.5622    
  17  Prefactor     51.810        123.13        .27967E-03   -1.4267    
  18  norm          .10000E-03    3.8370        .25340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6005        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.953        35.312        .73200E-04   -1.4613    
  21  Prefactor     .10000E-03    21.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4538        .13874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.049        15.873        .11545E-03   -1.5014    
  24  Prefactor     .10000E-03    5.8537        .15960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93517        .23648        .25162E-03   -.95235    
  26  Prefactor     .97366        .21861        .23691E-03   -.93613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.601e-09
Minuit parameter uncertainties:
  1  0.00824591
  2  32.7801
  3  0.000177959
  4  9.82363e-06
  5  0.003267
  6  2.50037e-05
  7  2.44745e-05
  8  4.03659
  9  0.000221253
  10  2.88769
  11  4.46889
  12  0.000111413
  13  2.36708
  14  0.000996034
  15  1.90095e-05
  16  0.213962
  17  123.746
  18  5.70021e-05
  19  4.00561e-05
  20  35.3361
  21  0.000104944
  22  3.54314e-05
  23  15.8781
  24  1.97259e-05
  25  0.236743
  26  0.218811
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.748e+00  4.469e+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:  9.737e-01  2.188e-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.352e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.80e-05

TS (Fixed Index): 1.04
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438852/likelihoodResults_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.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): 0
logL (Free Index) = 4566.5763757
delta logL = 0.208108876571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4566.57076636
delta logL = 0.213718224142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4094       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9372       1.0000          .0000       10.000    
     3 'Normalizat'    .91067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98910       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=   4566.571     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4095        48.193        .65936E-02    .85711E-03
   2  Index         2.9372        3.5325        .17288        .68569E-04
   3  Normalizat    .91065        .58215E-01    .45038E-01    .10468E-04
   4  Prefactor     .98911        .55401E-01    .46131E-01    .57401E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40945
  Index      = 2.93724
  Normalizat = 0.910649
  Prefactor  = 0.989106
 **********
 **   18 **HESSE 
 **********

 FCN=   4566.571     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4095        4.2562        .92096E-04   -1.5398    
   2  Index         2.9372        1.0313        .58789E-02   -.42525    
   3  Normalizat    .91065        .23172        .25454E-03   -.96087    
   4  Prefactor     .98911        .21967        .23521E-03   -.93094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96092e-09
Minuit parameter uncertainties:
  1  4.25676
  2  1.0403
  3  0.23197
  4  0.219869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438852': 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) = 4566.57076635
delta logL = 0.213718229258

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.409e+00  4.257e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.937e+00  1.040e+00  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.891e-01  2.199e-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.106e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.94 +/- 1.04
Photon Flux (Free Index): 6.78e-08 +/- 6.51e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.41e-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/438852/cmap_HighResolution_499564801_499824001_4FGL_J1215.0+1656_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='1.40e-05', photon_flux_error='5.57e-08', dlogl='2.14e-01', energy_flux='1.51e-05', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-09-05 05:38:45.323124', photon_index_error2='1.04', photon_index2='2.94', ts='1.04', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.41e-05', EG='0.94', time_epoch_completed='1630845525.32', return_code='0', job_id='438852', GAL2='0.99', EG2='0.91', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='6.51e-08', ts2='1.49', photon_index='2.41' WHERE bin_id='1004' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 438852: <4FGL_J1215.0+1656_daily_bin1004> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1004> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 05:25:57 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:25:58 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:25:58 2021
Terminated at Sun Sep  5 05:38:46 2021
Results reported at Sun Sep  5 05:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1004 183.774 16.9372 499564801 499824001 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 :                                   628.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

