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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1602
RA = 183.774, Dec = 16.9372
tmin = 654566401, tmax = 654825601
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='856324', job_status='RUN', time_executed='2021-10-02 00:03:20.480803', time_epoch_executed='1633158200.48' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856324/ft1_4FGL_J1215.0+1656_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856324/ft2_4FGL_J1215.0+1656_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856324/ft1_4FGL_J1215.0+1656_daily_bin1602.fits outfile=/scratch/kocevski/856324/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1602.fits ra=183.774 dec=16.9372 rad=12.0 tmin=654566401.0 tmax=654825601.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.02
user 4.72
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856324/ft2_4FGL_J1215.0+1656_daily_bin1602.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/856324/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856324/ft1_filtered_4FGL_J1215.0+1656_daily_bin1602.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.58
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856324/ft1_filtered_4FGL_J1215.0+1656_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856324/ft2_4FGL_J1215.0+1656_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856324/ltcube_654566401_654825601_4FGL_J1215.0+1656_daily_bin1602.fits outfile=/scratch/kocevski/856324/expmap_654566401_654825601_4FGL_J1215.0+1656_daily_bin1602.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/856324/ltcube_654566401_654825601_4FGL_J1215.0+1656_daily_bin1602.fits
.....................!
real 192.62
user 187.91
sys 4.35

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/856324/ft1_filtered_4FGL_J1215.0+1656_daily_bin1602.fits scfile=/scratch/kocevski/856324/ft2_4FGL_J1215.0+1656_daily_bin1602.fits outfile=/scratch/kocevski/856324/cmap_654566401_654825601_4FGL_J1215.0+1656_daily_bin1602.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.800       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8176       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13184E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3689       1.0000         .10000E-03   10000.    
    16 'norm      '    .52009       1.0000         .10000E-03   10000.    
    17 'Prefactor '    99.370       1.0000         .10000E-03   10000.    
    18 'norm      '    12.315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3438       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3986       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.882       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5684       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69586       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=   5934.874     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3624 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.203        40.745       -.10925E-06   -.87002E-05
   2  Prefactor     35.791        38.475       -.56856E-06   -.42242E-04
   3  Prefactor     1.1599        13.387        .42450E-05    .10379E-03
   4  Prefactor     1.8172        2.9078        .46235E-06    .10932E-03
   5  Prefactor     .10000E-03    94.575        .16808E-06** at limit **
   6  Prefactor     .10000E-03    9.1813        .17939E-06** at limit **
   7  Prefactor     .10000E-03    22.291        .31509E-06** at limit **
   8  Prefactor     7.6689        5.8689       -.32326E-06   -.69874E-04
   9  Prefactor     .10000E-03    33.379        .63079E-07** at limit **
  10  Prefactor     .37453        2.7549       -.61164E-06    .43389E-03
  11  Prefactor     .10000E-03    2.2918        .33249E-06** at limit **
  12  Prefactor     .10000E-03    16.809       -.15440E-06** at limit **
  13  Prefactor     .10000E-03    2.3711        .44097E-06** at limit **
  14  Prefactor     .10083E-03    35.304       -.25339E-05** at limit **
  15  Prefactor     7.3691        5.9867       -.16270E-07   -.40727E-04
  16  norm          .52007        .31232        .88767E-08    .61049E-05
  17  Prefactor     99.239        117.49        .33931E-05    .31812E-04
  18  norm          12.315        6.2396       -.23039E-07   -.93993E-04
  19  Prefactor     12.495        15.850        .52088E-06    .36841E-04
  20  Prefactor     4.3171        38.675       -.74049E-06    .15025E-05
  21  Prefactor     12.101        150.75       -.13362E-05   -.80903E-05
  22  Prefactor     .10000E-03    4.7844        .15147E-06** at limit **
  23  Prefactor     4.3842        19.604        .16371E-06   -.12825E-04
  24  Prefactor     10.880        19.103        .11284E-07   -.13941E-04
  25  Normalizat    1.5688        .22889       -.19393E-05    .40410E-04
  26  Prefactor     .69561        .20381        .21446E-05   -.74987E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.203
  Prefactor  = 35.7912
  Prefactor  = 1.15986
  Prefactor  = 1.81716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6689
  Prefactor  = 0.0001
  Prefactor  = 0.374534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100828
  Prefactor  = 7.36905
  norm       = 0.520069
  Prefactor  = 99.2388
  norm       = 12.3151
  Prefactor  = 12.4948
  Prefactor  = 4.31714
  Prefactor  = 12.1011
  Prefactor  = 0.0001
  Prefactor  = 4.38422
  Prefactor  = 10.88
  Normalizat = 1.56879
  Prefactor  = 0.695613
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.874     FROM HESSE     STATUS=OK           476 CALLS     4100 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.203        40.758        .63202E-04   -1.4439    
   2  Prefactor     35.791        38.336        .66979E-04   -1.4511    
   3  Prefactor     1.1599        13.846        .42847E-03   -1.5493    
   4  Prefactor     1.8172        2.8576        .14122E-03   -1.5438    
   5  Prefactor     .10000E-03    94.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6689        5.8714        .14481E-03   -1.5154    
   9  Prefactor     .10000E-03    33.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37453        9.0532        .20116E-02   -1.5586    
  11  Prefactor     .10000E-03    7.1765        .20563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2548        .22585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10083E-03    33.264        .12852       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3691        5.9808        .14775E-03   -1.5165    
  16  norm          .52007        .30470        .31141E-04   -1.5564    
  17  Prefactor     99.239        117.94        .20164E-03   -1.3712    
  18  norm          12.315        6.2313        .11415E-03   -1.5006    
  19  Prefactor     12.495        15.735        .11331E-03   -1.5001    
  20  Prefactor     4.3171        37.802        .19327E-03   -1.5292    
  21  Prefactor     12.101        143.37        .11506E-03   -1.5012    
  22  Prefactor     .10000E-03    4.8389        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3842        18.511        .19203E-03   -1.5289    
  24  Prefactor     10.880        19.041        .12145E-03   -1.5048    
  25  Normalizat    1.5688        .26149        .25056E-03   -.75863    
  26  Prefactor     .69561        .22829        .32517E-03   -1.0370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3358e-09
Minuit parameter uncertainties:
  1  40.7863
  2  38.3619
  3  8.01679
  4  2.85777
  5  3.91727e-05
  6  1.24391e-05
  7  2.6706e-05
  8  5.8718
  9  1.66914e-05
  10  3.68291
  11  8.32152e-05
  12  6.54304e-06
  13  6.2047e-05
  14  0.010499
  15  5.98129
  16  0.304705
  17  118.218
  18  6.23164
  19  15.7405
  20  25.5709
  21  83.5562
  22  4.97372e-06
  23  18.0269
  24  19.0514
  25  0.261715
  26  0.228596
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  8.322e-05  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:  6.956e-01  2.286e-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.569e+00  2.617e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856324/likelihoodResults_654566401_654825601_4FGL_J1215.0+1656_daily_bin1602.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) = 5934.87446661
delta logL = -0.000664604516714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5934.8738011
delta logL = 9.06016794033e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4799       1.0000          .0000       10.000    
     3 'Normalizat'    1.5686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69583       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5934.863     FROM MIGRAD    STATUS=FAILED       239 CALLS      418 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15703        20.761        .18570E-02   -.11447E-01
   2  Index         3.4244        1.5483        .50000       -.27903E-04
   3  Normalizat    1.5594        .19133E-01    .25056E-03    .72460E-04
   4  Prefactor     .69931        .17391E-01    .32517E-03    .28005E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5934.863     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      492 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15703        20.761        .18928E-03   -.11447E-01
   2  Index         3.4244        1.5483        .33910E-02   -.27903E-04
   3  Normalizat    1.5594        .19133E-01    .75571E-04    .72460E-04
   4  Prefactor     .69931        .17391E-01    .54693E-04    .28005E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5934.863     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      525 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15704        3.1117        .37139E-03    .64803E-04
   2  Index         3.4244        3.4026        .71391E-02   -.22328E-04
   3  Normalizat    1.5594        .25032        .50112E-04    .16720E-03
   4  Prefactor     .69931        .22155        .13007E-04    .79540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.157038
  Index      = 3.42441
  Normalizat = 1.55943
  Prefactor  = 0.699312
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.863     FROM HESSE     STATUS=OK            25 CALLS      550 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15704        3.1373        .14856E-04   -1.5787    
   2  Index         3.4244        3.4034        .28556E-03   -.32058    
   3  Normalizat    1.5594        .25070        .10022E-04   -.76122    
   4  Prefactor     .69931        .22175        .26013E-05   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4148e-10
Minuit parameter uncertainties:
  1  1.40345
  2  3.7953
  3  0.250904
  4  0.222028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856324': 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) = 5934.86321986
delta logL = 0.0105821482375

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.570e-01  1.403e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.424e+00  3.795e+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:  6.993e-01  2.220e-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.559e+00  2.509e-01  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/856324/cmap_HighResolution_654566401_654825601_4FGL_J1215.0+1656_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-10-02 00:16:17.518811', job_id='856324', GAL2='0.70', fit_tolerance='1e-08', EG2='1.56', EG='1.57', time_epoch_completed='1633158977.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.06e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1602' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 856324: <4FGL_J1215.0+1656_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:29 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:31 2021
Terminated at Sat Oct  2 00:16:18 2021
Results reported at Sat Oct  2 00:16:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1602 183.774 16.9372 654566401 654825601 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

