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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1489
RA = 183.774, Dec = 16.9372
tmin = 625276801, tmax = 625536001
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='441587', job_status='RUN', time_executed='2021-09-05 05:38:26.982777', time_epoch_executed='1630845506.98' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441587/ft1_4FGL_J1215.0+1656_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441587/ft2_4FGL_J1215.0+1656_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441587/ft1_4FGL_J1215.0+1656_daily_bin1489.fits outfile=/scratch/kocevski/441587/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1489.fits ra=183.774 dec=16.9372 rad=12.0 tmin=625276801.0 tmax=625536001.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.28
user 3.30
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441587/ft1_filtered_4FGL_J1215.0+1656_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/441587/ft2_4FGL_J1215.0+1656_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/441587/ltcube_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.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/441587/ft2_4FGL_J1215.0+1656_daily_bin1489.fits
.....................!
real 15.26
user 11.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441587/ft1_filtered_4FGL_J1215.0+1656_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/441587/ft2_4FGL_J1215.0+1656_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/441587/ltcube_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.fits outfile=/scratch/kocevski/441587/expmap_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.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/441587/ltcube_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.fits
.....................!
real 199.74
user 184.79
sys 5.33

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/441587/ft1_filtered_4FGL_J1215.0+1656_daily_bin1489.fits scfile=/scratch/kocevski/441587/ft2_4FGL_J1215.0+1656_daily_bin1489.fits outfile=/scratch/kocevski/441587/cmap_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35061       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    242.38       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.066       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0584       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52851       1.0000         .10000E-03   10000.    
    16 'norm      '    .33656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.645       1.0000         .10000E-03   10000.    
    18 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41179E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7719       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3893       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0541       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=   5258.682     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3667 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.347        .31343E-06** at limit **
   2  Prefactor     .10000E-03    8.9106        .69731E-06** at limit **
   3  Prefactor     .34728        7.7438       -.20589E-05    .90813E-04
   4  Prefactor     1.1628        1.8895        .10688E-08   -.47469E-04
   5  Prefactor     242.40        154.31       -.93119E-06    .89332E-05
   6  Prefactor     .10000E-03    3.9884       -.44678E-07** at limit **
   7  Prefactor     13.074        17.611        .50610E-07    .37242E-04
   8  Prefactor     10.497        5.0884        .18855E-06    .41299E-03
   9  Prefactor     .10000E-03    70.221       -.26372E-07** at limit **
  10  Prefactor     .10006E-03    1.6543        .72719E-06** at limit **
  11  Prefactor     3.0562        3.9791        .58468E-06    .38348E-03
  12  Prefactor     .10000E-03    14.951       -.43006E-06** at limit **
  13  Prefactor     1.4816        1.8935        .47811E-07    .27425E-03
  14  Prefactor     15.127        35.160        .21291E-05    .30718E-04
  15  Prefactor     .53399        5.8978       -.51131E-05    .41887E-03
  16  norm          .33652        .24514        .15359E-07    .16655E-02
  17  Prefactor     25.760        412.56       -.37233E-04   -.63156E-05
  18  norm          .10006E-03    2.8483       -.15624E-05** at limit **
  19  Prefactor     17.366        12.414        .17157E-06   -.65091E-04
  20  Prefactor     .10109E-03    23.761        .73897E-05** at limit **
  21  Prefactor     .10000E-03    186.23        .25916E-05** at limit **
  22  Prefactor     .10000E-03    8.5397       -.82823E-06** at limit **
  23  Prefactor     1.7758        24.566        .18532E-04    .33245E-03
  24  Prefactor     4.3867        12.360       -.16389E-05    .26905E-05
  25  Normalizat    1.0799        .20477       -.86849E-06    .42034E-03
  26  Prefactor     1.0543        .19072        .99669E-06    .31514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.347279
  Prefactor  = 1.16283
  Prefactor  = 242.397
  Prefactor  = 0.0001
  Prefactor  = 13.0741
  Prefactor  = 10.4971
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 3.05618
  Prefactor  = 0.0001
  Prefactor  = 1.48159
  Prefactor  = 15.1271
  Prefactor  = 0.533991
  norm       = 0.336519
  Prefactor  = 25.7596
  norm       = 0.000100064
  Prefactor  = 17.3661
  Prefactor  = 0.000101088
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.77577
  Prefactor  = 4.38669
  Normalizat = 1.07993
  Prefactor  = 1.0543
 **********
 **   18 **HESSE 
 **********

 FCN=   5258.682     FROM HESSE     STATUS=OK           468 CALLS     4135 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .34728        41.154        .37963E-02   -1.5590    
   4  Prefactor     1.1628        1.8609        .12061E-03   -1.5492    
   5  Prefactor     242.40        154.46        .13005E-03   -1.2581    
   6  Prefactor     .10000E-03    3.9962        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.074        17.637        .11081E-03   -1.4985    
   8  Prefactor     10.497        5.0506        .10664E-03   -1.5060    
   9  Prefactor     .10000E-03    70.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    18.587        .16253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0562        3.7426        .14528E-03   -1.5358    
  12  Prefactor     .10000E-03    14.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4816        1.8649        .10908E-03   -1.5465    
  14  Prefactor     15.127        35.152        .10298E-03   -1.4930    
  15  Prefactor     .53399        15.242        .28017E-02   -1.5562    
  16  norm          .33652        .23742        .28563E-04   -1.5592    
  17  Prefactor     25.760        411.72        .79104E-04   -1.4692    
  18  norm          .10006E-03    15.286        .22094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.366        12.160        .96111E-04   -1.4874    
  20  Prefactor     .10109E-03    142.39        .59854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    187.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7758        27.854        .15728E-02   -1.5441    
  24  Prefactor     4.3867        12.369        .19224E-03   -1.5289    
  25  Normalizat    1.0799        .23799        .25572E-03   -.90399    
  26  Prefactor     1.0543        .22354        .25667E-03   -.90941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72484e-08
Minuit parameter uncertainties:
  1  4.82975e-05
  2  9.29186e-06
  3  7.56514
  4  1.86098
  5  154.722
  6  1.046e-06
  7  17.6439
  8  5.05084
  9  9.35269e-06
  10  0.00209567
  11  3.74285
  12  6.03328e-05
  13  1.865
  14  35.2
  15  5.70688
  16  0.23742
  17  207.685
  18  0.00197567
  19  12.1618
  20  0.0249492
  21  0.00134528
  22  2.3919e-05
  23  14.0733
  24  12.3767
  25  0.238226
  26  0.223739
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.054e+00  2.237e-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.080e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/441587/likelihoodResults_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.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) = 5257.83203787
delta logL = 0.849701818232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5257.47034098
delta logL = 1.21139871535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.3391       1.0000          .0000       10.000    
     3 'Normalizat'    1.0033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1217       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=   5257.470     FROM MIGRAD    STATUS=CONVERGED    333 CALLS      808 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24018E-01    .13359E-03** at limit **
   2  Index         8.3403        7.9822        .60279E-02   -.24646E-04
   3  Normalizat    1.0031        .12957        .26358E-03    .45872E-03
   4  Prefactor     1.1219        .12854        .24990E-03    .53457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.34032
  Normalizat = 1.00312
  Prefactor  = 1.1219
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.470     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      843 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13381E-01    .18314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3403        7.9121        .24112E-03   -5.5516    
   3  Normalizat    1.0031        .11342        .52716E-04   -.92926    
   4  Prefactor     1.1219        .11273        .49981E-04   -.88770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.97725e-09
Minuit parameter uncertainties:
  1  8.69779e-07
  2  4.65621
  3  0.11345
  4  0.112753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441587': 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) = 5257.47033089
delta logL = 1.21140879985

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  8.698e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  8.340e+00  4.656e+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:  1.122e+00  1.128e-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.003e+00  1.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 183.774 16.937
Photon Index (Free Index): 8.34 +/- 4.66
Photon Flux (Free Index): 8.16e-08 +/- 7.46e-07
Energy Flux (Free Index): 9.40e-06 +/- 8.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/441587/cmap_HighResolution_625276801_625536001_4FGL_J1215.0+1656_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='9.40e-06', dlogl='1.21e+00', photon_flux2='8.16e-08', job_status='DONE', time_completed='2021-09-05 05:51:37.594618', photon_index_error2='4.66', photon_index2='8.34', ts='0.81', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='8.55e-05', EG='1.08', time_epoch_completed='1630846297.59', return_code='0', job_id='441587', GAL2='1.12', EG2='1.00', return_code2='102', photon_flux_error2='7.46e-07', ts2='3.39', photon_index='2.41' WHERE bin_id='1489' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 441587: <4FGL_J1215.0+1656_daily_bin1489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1489 183.774 16.9372 625276801 625536001 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 :                                   757.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

