/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 = 7366
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1530
RA = 183.774, Dec = 16.9372
tmin = 635904001, tmax = 636163201
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='441657', job_status='RUN', time_executed='2021-09-05 05:37:50.808092', time_epoch_executed='1630845470.81' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441657/ft1_4FGL_J1215.0+1656_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441657/ft2_4FGL_J1215.0+1656_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441657/ft1_4FGL_J1215.0+1656_daily_bin1530.fits outfile=/scratch/kocevski/441657/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1530.fits ra=183.774 dec=16.9372 rad=12.0 tmin=635904001.0 tmax=636163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.79
user 3.97
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441657/ft1_filtered_4FGL_J1215.0+1656_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/441657/ft2_4FGL_J1215.0+1656_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/441657/ltcube_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.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/441657/ft2_4FGL_J1215.0+1656_daily_bin1530.fits
.....................!
real 12.85
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441657/ft1_filtered_4FGL_J1215.0+1656_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/441657/ft2_4FGL_J1215.0+1656_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/441657/ltcube_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.fits outfile=/scratch/kocevski/441657/expmap_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.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/441657/ltcube_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.fits
.....................!
real 196.71
user 185.62
sys 5.17

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/441657/ft1_filtered_4FGL_J1215.0+1656_daily_bin1530.fits scfile=/scratch/kocevski/441657/ft2_4FGL_J1215.0+1656_daily_bin1530.fits outfile=/scratch/kocevski/441657/cmap_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441657/ft1_filtered_4FGL_J1215.0+1656_daily_bin1530.fits scfile=/scratch/kocevski/441657/ft2_4FGL_J1215.0+1656_daily_bin1530.fits outfile=/scratch/kocevski/441657/cmap_HighResolution_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    130.59       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1366       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.238       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 '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8022       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12999E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8648       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3398       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2092       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82569       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=   5563.698     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3173 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.418        67.785        .11784E-04   -.73980E-05
   2  Prefactor     .10000E-03    8.0777       -.54511E-07** at limit **
   3  Prefactor     .10000E-03    5.7973        .48333E-07** at limit **
   4  Prefactor     .10000E-03    .68473        .63122E-07** at limit **
   5  Prefactor     130.60        153.55        .30937E-05    .17108E-04
   6  Prefactor     2.5127        13.914       -.17872E-04   -.45221E-03
   7  Prefactor     22.118        25.080       -.21685E-04   -.20129E-04
   8  Prefactor     1.1369        2.9272        .65007E-08   -.78350E-03
   9  Prefactor     27.447        93.335        .23037E-03    .53089E-04
  10  Prefactor     .10000E-03    1.3699        .75907E-07** at limit **
  11  Prefactor     .10000E-03    1.5108        .44731E-07** at limit **
  12  Prefactor     .10000E-03    25.109       -.47403E-07** at limit **
  13  Prefactor     .10000E-03    1.0766        .33096E-07** at limit **
  14  Prefactor     12.721        30.321        .71125E-05   -.54188E-04
  15  Prefactor     1.8025        3.7292       -.18066E-06   -.40008E-03
  16  norm          .10000E-03    .55124E-01    .40581E-07** at limit **
  17  Prefactor     .10000E-03    580.87        .12421E-03** at limit **
  18  norm          8.8650        5.2041        .51754E-06   -.16477E-03
  19  Prefactor     .10000E-03    3.0958        .11132E-07** at limit **
  20  Prefactor     .10000E-03    8.7565        .80964E-07** at limit **
  21  Prefactor     .10000E-03    12.900        .26720E-07** at limit **
  22  Prefactor     5.3407        6.5133        .41690E-06   -.18232E-03
  23  Prefactor     .10000E-03    5.4275        .71940E-07** at limit **
  24  Prefactor     .10000E-03    7.0627        .12628E-06** at limit **
  25  Normalizat    1.2092        .19223       -.28035E-05    .12084E-04
  26  Prefactor     .82552        .17798       -.31329E-05   -.11331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.4176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.599
  Prefactor  = 2.51272
  Prefactor  = 22.1184
  Prefactor  = 1.13691
  Prefactor  = 27.447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7211
  Prefactor  = 1.80249
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.86497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20924
  Prefactor  = 0.825521
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.698     FROM HESSE     STATUS=OK           450 CALLS     3623 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.418        67.940        .43476E-04   -1.3857    
   2  Prefactor     .10000E-03    8.0912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8510        .17537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .69658        .60242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     130.60        153.60        .35234E-04   -1.3417    
   6  Prefactor     2.5127        13.830        .25771E-03   -1.5391    
   7  Prefactor     22.118        25.056        .85165E-04   -1.4767    
   8  Prefactor     1.1369        2.8770        .19556E-03   -1.5495    
   9  Prefactor     27.447        93.268        .76760E-04   -1.4660    
  10  Prefactor     .10000E-03    1.4048        .17028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5357        .89453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1150        .15110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.721        30.309        .11229E-03   -1.4994    
  15  Prefactor     1.8025        3.6865        .19538E-03   -1.5439    
  16  norm          .10000E-03    .60981E-01    .34074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    584.18        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8650        5.1978        .12187E-03   -1.5112    
  19  Prefactor     .10000E-03    3.0989        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3407        6.5075        .17392E-03   -1.5246    
  23  Prefactor     .10000E-03    5.4439        .16970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.0803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2092        .22546        .23754E-03   -.86318    
  26  Prefactor     .82552        .20807        .26698E-03   -.98794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17605e-09
Minuit parameter uncertainties:
  1  68.0018
  2  1.92816e-05
  3  1.89338e-05
  4  6.24465e-06
  5  154.074
  6  11.7939
  7  25.0683
  8  2.87739
  9  93.7696
  10  1.01289e-05
  11  7.33649e-06
  12  1.77141e-05
  13  6.81344e-06
  14  30.3453
  15  3.68692
  16  1.03586e-06
  17  0.00199148
  18  5.19811
  19  9.25648e-07
  20  8.92134e-06
  21  1.15364e-05
  22  6.50839
  23  1.91537e-05
  24  2.66808e-05
  25  0.225642
  26  0.208265
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  7.336e-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.255e-01  2.083e-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.209e+00  2.256e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441657/likelihoodResults_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.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) = 5563.70106952
delta logL = -0.00308964288706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5563.69798005
delta logL = -1.65750861925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4058       1.0000          .0000       10.000    
     3 'Normalizat'    1.2093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82556       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=   5563.698     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    53.997        .89530E-03** at limit **
   2  Index         2.3824        6.9122        .50000        .18642E-04
   3  Normalizat    1.2092        .29097E-01    .23754E-03    .81361E-05
   4  Prefactor     .82552        .27719E-01    .26698E-03    .19035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100131
  Index      = 2.38245
  Normalizat = 1.20924
  Prefactor  = 0.825523
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.698     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    203.08        .17906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3824        6.2728        .50000       -.55097    
   3  Normalizat    1.2092        .66961E-01    .95017E-05   -.86318    
   4  Prefactor     .82552        .63695E-01    .10679E-04   -.98794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16001e-08
Minuit parameter uncertainties:
  1  0.0103678
  2  773.957
  3  0.0669658
  4  0.0637011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441657': 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) = 5563.69797979
delta logL = 9.3618837127e-08

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.001e-04  1.037e-02  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.382e+00  7.740e+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.255e-01  6.370e-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.209e+00  6.697e-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/441657/cmap_HighResolution_635904001_636163201_4FGL_J1215.0+1656_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-09-05 05:49:44.689998', job_id='441657', GAL2='0.83', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630846184.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1530' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 441657: <4FGL_J1215.0+1656_daily_bin1530> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1530> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 05:35:28 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:35:29 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:35:29 2021
Terminated at Sun Sep  5 05:49:47 2021
Results reported at Sun Sep  5 05:49:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1530 183.774 16.9372 635904001 636163201 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 :                                   698.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            859 sec.

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

