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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin692
RA = 183.774, Dec = 16.9372
tmin = 418694401, tmax = 418953601
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='437179', job_status='RUN', time_executed='2021-09-05 05:20:53.260568', time_epoch_executed='1630844453.26' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437179/ft1_4FGL_J1215.0+1656_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437179/ft1_4FGL_J1215.0+1656_daily_bin692.fits outfile=/scratch/kocevski/437179/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin692.fits ra=183.774 dec=16.9372 rad=12.0 tmin=418694401.0 tmax=418953601.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.17
user 4.91
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437179/ft1_filtered_4FGL_J1215.0+1656_daily_bin692.fits" evtable="EVENTS" scfile=/scratch/kocevski/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits sctable="SC_DATA" outfile=/scratch/kocevski/437179/ltcube_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.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/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437179/ft1_filtered_4FGL_J1215.0+1656_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/437179/ltcube_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.fits outfile=/scratch/kocevski/437179/expmap_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.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/437179/ltcube_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.fits
.....................!
real 189.96
user 185.09
sys 4.50

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/437179/ft1_filtered_4FGL_J1215.0+1656_daily_bin692.fits scfile=/scratch/kocevski/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits outfile=/scratch/kocevski/437179/cmap_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437179/ft1_filtered_4FGL_J1215.0+1656_daily_bin692.fits scfile=/scratch/kocevski/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits outfile=/scratch/kocevski/437179/cmap_HighResolution_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.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/437179/ft1_filtered_4FGL_J1215.0+1656_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/437179/ft2_4FGL_J1215.0+1656_daily_bin692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437179/Model_4FGL_J1215.0+1656_daily_bin692.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/437179/ft1_filtered_4FGL_J1215.0+1656_daily_bin692.fits.....................!
real 44.73
user 43.47
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4693       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4303       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.337       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2600       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0671       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84379       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=   4315.522     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3061 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.640       -.26692E-05** at limit **
   2  Prefactor     .10000E-03    58.419        .44613E-05** at limit **
   3  Prefactor     .10000E-03    47.865        .12286E-04** at limit **
   4  Prefactor     .10000E-03    .73061        .35279E-07** at limit **
   5  Prefactor     .10000E-03    67.956       -.20371E-04** at limit **
   6  Prefactor     .10000E-03    8.0914       -.11115E-05** at limit **
   7  Prefactor     .10000E-03    11.317       -.32321E-05** at limit **
   8  Prefactor     17.185        6.5684        .19149E-06   -.44936E-03
   9  Prefactor     26.151        97.817        .91786E-04    .12263E-04
  10  Prefactor     .10000E-03    1.3108        .21974E-07** at limit **
  11  Prefactor     .10000E-03    1.6107        .10206E-07** at limit **
  12  Prefactor     30.381        27.351        .16305E-06   -.64824E-07
  13  Prefactor     2.8814        3.0445        .19025E-06   -.35044E-03
  14  Prefactor     .10000E-03    11.123        .96766E-06** at limit **
  15  Prefactor     .10000E-03    10.690        .24874E-05** at limit **
  16  norm          1.4694        .39030        .53219E-07   -.10393E-02
  17  Prefactor     6.4289        503.29       -.51597E-05   -.12483E-05
  18  norm          2.6380        4.6368        .83446E-07   -.38663E-03
  19  Prefactor     10.336        15.151       -.80363E-06   -.62926E-03
  20  Prefactor     .10000E-03    25.253       -.16955E-04** at limit **
  21  Prefactor     .10000E-03    20.918        .12471E-04** at limit **
  22  Prefactor     7.2602        6.4502        .22090E-06   -.18628E-05
  23  Prefactor     .10000E-03    6.7920        .40213E-07** at limit **
  24  Prefactor     .10000E-03    44.585        .78228E-05** at limit **
  25  Normalizat    1.0670        .21927       -.28260E-05   -.13217E-03
  26  Prefactor     .84386        .20463       -.20260E-05   -.17407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 17.1848
  Prefactor  = 26.1508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.381
  Prefactor  = 2.88142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46939
  Prefactor  = 6.42891
  norm       = 2.63801
  Prefactor  = 10.3357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.26024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06696
  Prefactor  = 0.843864
 **********
 **   18 **HESSE 
 **********

 FCN=   4315.522     FROM HESSE     STATUS=OK           448 CALLS     3509 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    49.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .73759        .54808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    67.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.185        6.5826        .96614E-04   -1.4879    
   9  Prefactor     26.151        97.656        .78414E-04   -1.4685    
  10  Prefactor     .10000E-03    1.3241        .73398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6369        .81379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.381        27.350        .72691E-04   -1.4605    
  13  Prefactor     2.8814        3.0358        .11294E-03   -1.5368    
  14  Prefactor     .10000E-03    11.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4694        .39157        .20069E-04   -1.5466    
  17  Prefactor     6.4289        504.07        .15827E-03   -1.5201    
  18  norm          2.6380        4.6046        .17954E-03   -1.5383    
  19  Prefactor     10.336        15.194        .62311E-03   -1.5065    
  20  Prefactor     .10000E-03    25.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2602        6.4531        .14886E-03   -1.5169    
  23  Prefactor     .10000E-03    6.8185        .16721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0670        .25885        .24988E-03   -.90820    
  26  Prefactor     .84386        .24064        .26542E-03   -.98131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60524e-09
Minuit parameter uncertainties:
  1  4.45169e-06
  2  0.000252357
  3  3.4782e-05
  4  2.95171e-06
  5  4.99559e-05
  6  0.000249637
  7  0.000379613
  8  6.58287
  9  98.2606
  10  1.40465e-06
  11  1.77662e-06
  12  27.3612
  13  3.03597
  14  1.48476e-06
  15  2.3376e-05
  16  0.391572
  17  114.869
  18  4.60517
  19  15.1998
  20  8.85987e-05
  21  1.65017e-05
  22  6.45372
  23  1.35202e-05
  24  0.000206558
  25  0.259161
  26  0.240938
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.777e-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:  8.439e-01  2.409e-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.067e+00  2.592e-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: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437179/likelihoodResults_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.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) = 4315.52526402
delta logL = -0.00288707201344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4315.5223779
delta logL = -9.56515577855e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3828       1.0000          .0000       10.000    
     3 'Normalizat'    1.0670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84390       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=   4315.522     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      247 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2898        .83877E-02** at limit **
   2  Index         1.9828        5.8309        .50000        .39972E-06
   3  Normalizat    1.0670        .99463E-02    .24988E-03    .71139E-03
   4  Prefactor     .84387        .95603E-02    .26542E-03    .67298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98285
  Normalizat = 1.06696
  Prefactor  = 0.843867
 **********
 **   18 **HESSE 
 **********

 FCN=   4315.522     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.148        .93374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9828        8.2075        .50000       -.64780    
   3  Normalizat    1.0670        .30497E-01    .49976E-04   -.90820    
   4  Prefactor     .84387        .29314E-01    .53084E-04   -.98131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08761e-09
Minuit parameter uncertainties:
  1  3.0497e-07
  2  313.541
  3  0.030498
  4  0.0293142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437179': 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) = 4315.52236977
delta logL = 7.17912826076e-06

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.050e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.983e+00  3.135e+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:  8.439e-01  2.931e-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.067e+00  3.050e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/437179/cmap_HighResolution_418694401_418953601_4FGL_J1215.0+1656_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-05 05:31:15.989596', job_id='437179', GAL2='0.84', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630845075.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='692' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:31:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 437179: <4FGL_J1215.0+1656_daily_bin692> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin692 183.774 16.9372 418694401 418953601 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 :                                   617.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            635 sec.

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

