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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1238
RA = 183.774, Dec = 16.9372
tmin = 560217601, tmax = 560476801
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='609503', job_status='RUN', time_executed='2021-09-05 13:55:29.775262', time_epoch_executed='1630875329.78' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609503/ft1_4FGL_J1215.0+1656_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609503/ft2_4FGL_J1215.0+1656_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609503/ft1_4FGL_J1215.0+1656_daily_bin1238.fits outfile=/scratch/kocevski/609503/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1238.fits ra=183.774 dec=16.9372 rad=12.0 tmin=560217601.0 tmax=560476801.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 3.61
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609503/ft1_filtered_4FGL_J1215.0+1656_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/609503/ft2_4FGL_J1215.0+1656_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/609503/ltcube_560217601_560476801_4FGL_J1215.0+1656_daily_bin1238.fits outfile=/scratch/kocevski/609503/expmap_560217601_560476801_4FGL_J1215.0+1656_daily_bin1238.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/609503/ltcube_560217601_560476801_4FGL_J1215.0+1656_daily_bin1238.fits
.....................!
real 191.92
user 186.49
sys 5.03

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/609503/ft1_filtered_4FGL_J1215.0+1656_daily_bin1238.fits scfile=/scratch/kocevski/609503/ft2_4FGL_J1215.0+1656_daily_bin1238.fits outfile=/scratch/kocevski/609503/cmap_560217601_560476801_4FGL_J1215.0+1656_daily_bin1238.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609503/ft1_filtered_4FGL_J1215.0+1656_daily_bin1238.fits scfile=/scratch/kocevski/609503/ft2_4FGL_J1215.0+1656_daily_bin1238.fits outfile=/scratch/kocevski/609503/cmap_HighResolution_560217601_560476801_4FGL_J1215.0+1656_daily_bin1238.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68216       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.253       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9828       1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.61       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5445       1.0000         .10000E-03   10000.    
    16 'norm      '    .10219       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1430       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.765       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.926       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2111       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92058       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=   8843.865     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3144 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.143        31.512        .42416E-07   -.14854E-04
   2  Prefactor     22.794        17.475       -.70393E-06   -.24621E-03
   3  Prefactor     1.0321        13.915       -.54231E-05    .72520E-03
   4  Prefactor     .68058        1.2088        .79475E-06    .18937E-02
   5  Prefactor     35.113        103.14       -.11874E-05   -.62276E-04
   6  Prefactor     .10000E-03    10.059       -.16031E-05** at limit **
   7  Prefactor     .10000E-03    4.4039        .80819E-08** at limit **
   8  Prefactor     1.4473        2.7404        .61526E-06    .52427E-03
   9  Prefactor     .10000E-03    18.434       -.10430E-06** at limit **
  10  Prefactor     .10000E-03    .43933        .48859E-07** at limit **
  11  Prefactor     .10000E-03    .71572        .14229E-06** at limit **
  12  Prefactor     .10000E-03    15.069       -.50359E-07** at limit **
  13  Prefactor     3.9828        1.8382        .25884E-07   -.12740E-03
  14  Prefactor     106.61        45.308        .25205E-06   -.96628E-05
  15  Prefactor     6.5447        4.4832        .31393E-07   -.87587E-04
  16  norm          .10216        .12160        .16782E-06    .62650E-02
  17  Prefactor     .10000E-03    88.927        .15712E-06** at limit **
  18  norm          4.2337        3.1012        .81288E-07   -.21024E-04
  19  Prefactor     8.1424        7.4718        .54812E-07   -.41713E-04
  20  Prefactor     .10000E-03    19.513        .49341E-06** at limit **
  21  Prefactor     32.756        39.627        .23960E-07   -.21633E-04
  22  Prefactor     .10000E-03    2.2714        .26256E-06** at limit **
  23  Prefactor     28.927        15.164        .24818E-06   -.32117E-04
  24  Prefactor     .10000E-03    24.115        .17679E-05** at limit **
  25  Normalizat    1.2110        .16259       -.95118E-06   -.31130E-03
  26  Prefactor     .92065        .15572       -.56271E-06   -.30099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1432
  Prefactor  = 22.7939
  Prefactor  = 1.03212
  Prefactor  = 0.680582
  Prefactor  = 35.1131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.44729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98283
  Prefactor  = 106.609
  Prefactor  = 6.54469
  norm       = 0.102162
  Prefactor  = 0.0001
  norm       = 4.23373
  Prefactor  = 8.14237
  Prefactor  = 0.0001
  Prefactor  = 32.7559
  Prefactor  = 0.0001
  Prefactor  = 28.9273
  Prefactor  = 0.000100001
  Normalizat = 1.21103
  Prefactor  = 0.920651
 **********
 **   18 **HESSE 
 **********

 FCN=   8843.865     FROM HESSE     STATUS=OK           462 CALLS     3606 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.143        31.522        .83255E-04   -1.4745    
   2  Prefactor     22.794        17.311        .83918E-04   -1.4753    
   3  Prefactor     1.0321        18.505        .44612E-02   -1.5505    
   4  Prefactor     .68058        1.1672        .13518E-02   -1.5543    
   5  Prefactor     35.113        103.75        .33747E-03   -1.4522    
   6  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4473        2.6888        .20088E-03   -1.5467    
   9  Prefactor     .10000E-03    18.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .44169        .60857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .73860        .15543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9828        1.8386        .83571E-04   -1.5309    
  14  Prefactor     106.61        45.339        .38949E-04   -1.3639    
  15  Prefactor     6.5447        4.4704        .15556E-03   -1.5196    
  16  norm          .10216        .11235        .35728E-03   -1.5644    
  17  Prefactor     .10000E-03    88.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2337        3.0953        .13408E-03   -1.5296    
  19  Prefactor     8.1424        7.4702        .14050E-03   -1.5137    
  20  Prefactor     .10000E-03    19.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.756        39.632        .70004E-04   -1.4563    
  22  Prefactor     .10000E-03    2.3004        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.927        15.174        .74493E-04   -1.4632    
  24  Prefactor     .10000E-03    25.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2110        .19276        .24950E-03   -.86263    
  26  Prefactor     .92065        .18403        .27528E-03   -.95423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62834e-09
Minuit parameter uncertainties:
  1  31.5445
  2  17.3149
  3  8.74333
  4  1.16726
  5  104.288
  6  0.000141978
  7  4.6839e-06
  8  2.68899
  9  1.74524e-05
  10  1.62217e-06
  11  5.08134e-06
  12  1.32031e-05
  13  1.8386
  14  45.3538
  15  4.47067
  16  0.112351
  17  5.14714e-05
  18  3.09545
  19  7.47104
  20  7.02935e-05
  21  39.6635
  22  1.53567e-05
  23  15.1762
  24  0.000331102
  25  0.19287
  26  0.184155
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  5.081e-06  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.207e-01  1.842e-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.211e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/609503/likelihoodResults_560217601_560476801_4FGL_J1215.0+1656_daily_bin1238.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8843.87097597
delta logL = -0.00636917309748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8843.86460736
delta logL = -5.56910890737e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3992       1.0000          .0000       10.000    
     3 'Normalizat'    1.2110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92077       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=   8843.865     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      219 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8232        .90712E-02** at limit **
   2  Index         2.1164        8.7813        .50000        .28268E-05
   3  Normalizat    1.2110        .75507E-02    .56421E-01    .20366E-04
   4  Prefactor     .92065        .74135E-02    .45269E-01    .63755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.11641
  Normalizat = 1.21103
  Prefactor  = 0.920652
 **********
 **   18 **HESSE 
 **********

 FCN=   8843.865     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      250 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.517        .80909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1164        5.9519        .50000       -.61470    
   3  Normalizat    1.2110        .30372E-01    .24950E-03   -.86263    
   4  Prefactor     .92065        .29825E-01    .27528E-03   -.95423    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52501e-10
Minuit parameter uncertainties:
  1  0.000412381
  2  362.021
  3  0.0303725
  4  0.0298259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609503': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8843.86460236
delta logL = 4.43909448222e-06

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.211e+00  3.037e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.84e-08', time_completed='2021-09-05 14:11:13.524089', job_id='609503', GAL2='0.92', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630876273.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1238' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:11:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 609503: <4FGL_J1215.0+1656_daily_bin1238> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1238> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:55:20 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:55:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:55:21 2021
Terminated at Sun Sep  5 14:11:14 2021
Results reported at Sun Sep  5 14:11:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1238 183.774 16.9372 560217601 560476801 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 :                                   941.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

