/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 7 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1215.0+1656_daily_bin92
RA = 183.774, Dec = 16.9372
tmin = 263174401, tmax = 263433601
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='433846', job_status='RUN', time_executed='2021-09-05 05:11:22.318931', time_epoch_executed='1630843882.32' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433846

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433846/ft1_4FGL_J1215.0+1656_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433846/ft2_4FGL_J1215.0+1656_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433846/ft1_4FGL_J1215.0+1656_daily_bin92.fits outfile=/scratch/kocevski/433846/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin92.fits ra=183.774 dec=16.9372 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.36
user 1.18
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433846/ft1_filtered_4FGL_J1215.0+1656_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/433846/ft2_4FGL_J1215.0+1656_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/433846/ltcube_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.fits outfile=/scratch/kocevski/433846/expmap_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.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/433846/ltcube_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.fits
.....................!
real 189.81
user 185.29
sys 4.01

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/433846/ft1_filtered_4FGL_J1215.0+1656_daily_bin92.fits scfile=/scratch/kocevski/433846/ft2_4FGL_J1215.0+1656_daily_bin92.fits outfile=/scratch/kocevski/433846/cmap_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=183.774 yref=16.9372 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433846/ft1_filtered_4FGL_J1215.0+1656_daily_bin92.fits scfile=/scratch/kocevski/433846/ft2_4FGL_J1215.0+1656_daily_bin92.fits outfile=/scratch/kocevski/433846/cmap_HighResolution_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.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.52
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.204       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2911       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.678       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8533       1.0000         .10000E-03   10000.    
    16 'norm      '    .80350       1.0000         .10000E-03   10000.    
    17 'Prefactor '    243.08       1.0000         .10000E-03   10000.    
    18 'norm      '    .11488E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9598       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3612       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73120       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=   4907.046     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3108 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.562        .14512E-05** at limit **
   2  Prefactor     .10000E-03    5.2307        .12214E-06** at limit **
   3  Prefactor     .10000E-03    4.9949       -.41112E-07** at limit **
   4  Prefactor     4.1705        2.0622       -.11944E-07    .12877E-05
   5  Prefactor     71.257        116.97       -.57904E-05   -.72018E-06
   6  Prefactor     .10000E-03    8.6025       -.16559E-06** at limit **
   7  Prefactor     .10000E-03    9.2960       -.59900E-06** at limit **
   8  Prefactor     3.2912        4.2441        .11292E-05   -.28507E-05
   9  Prefactor     .10000E-03    63.608       -.10593E-05** at limit **
  10  Prefactor     .10000E-03    1.8702        .86715E-07** at limit **
  11  Prefactor     .10000E-03    1.6736       -.14033E-06** at limit **
  12  Prefactor     10.693        28.271       -.37922E-06   -.67393E-06
  13  Prefactor     5.8427        3.1378        .12356E-07    .12283E-04
  14  Prefactor     .10000E-03    113.65        .17144E-05** at limit **
  15  Prefactor     4.8545        5.2605        .72317E-07    .13863E-04
  16  norm          .80350        .32892        .22724E-08    .86075E-04
  17  Prefactor     243.09        183.68       -.80817E-06   -.36255E-05
  18  norm          .10000E-03    3.4900        .74991E-07** at limit **
  19  Prefactor     .10000E-03    2.5833       -.27899E-07** at limit **
  20  Prefactor     .10000E-03    7.5173        .88025E-06** at limit **
  21  Prefactor     .10000E-03    22.256        .71384E-06** at limit **
  22  Prefactor     1.9596        7.5936        .25781E-06   -.36942E-06
  23  Prefactor     .10000E-03    6.7054       -.36873E-06** at limit **
  24  Prefactor     .10000E-03    14.987       -.15352E-05** at limit **
  25  Normalizat    1.3614        .20590       -.37502E-06    .41752E-04
  26  Prefactor     .73101        .19421        .52800E-06    .21859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17049
  Prefactor  = 71.2571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6926
  Prefactor  = 5.84273
  Prefactor  = 0.0001
  Prefactor  = 4.85447
  norm       = 0.803497
  Prefactor  = 243.089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36144
  Prefactor  = 0.731006
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.046     FROM HESSE     STATUS=OK           452 CALLS     3560 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2318        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0211        .15290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1705        2.0621        .68608E-04   -1.5300    
   5  Prefactor     71.257        117.14        .23787E-03   -1.4018    
   6  Prefactor     .10000E-03    8.6363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2912        4.2530        .78310E-03   -1.5345    
   9  Prefactor     .10000E-03    63.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9307        .18688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8688        .17516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.693        28.262        .12261E-03   -1.5054    
  13  Prefactor     5.8427        3.1345        .88055E-04   -1.5224    
  14  Prefactor     .10000E-03    115.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8545        5.2220        .16065E-03   -1.5267    
  16  norm          .80350        .32774        .24263E-04   -1.5529    
  17  Prefactor     243.09        183.76        .12987E-03   -1.2577    
  18  norm          .10000E-03    6.7836        .25114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5845        .10996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9596        7.5723        .29632E-03   -1.5428    
  23  Prefactor     .10000E-03    6.7561        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3614        .24171        .22946E-03   -.81750    
  26  Prefactor     .73101        .22826        .29070E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55216e-11
Minuit parameter uncertainties:
  1  2.58145e-06
  2  2.70181e-07
  3  2.38984e-06
  4  2.06217
  5  117.519
  6  2.06423e-05
  7  1.04459e-06
  8  4.2534
  9  8.58886e-06
  10  2.89221e-06
  11  5.57548e-06
  12  28.2977
  13  3.13457
  14  1.41667e-05
  15  5.22245
  16  0.327744
  17  184.2
  18  1.8229e-05
  19  3.72376e-07
  20  5.36078e-07
  21  1.67432e-06
  22  7.576
  23  2.23322e-06
  24  1.59754e-06
  25  0.241908
  26  0.228554
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  5.575e-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:  7.310e-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.361e+00  2.419e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433846/likelihoodResults_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.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) = 4907.04746065
delta logL = -0.00165975776599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4907.04580126
delta logL = -3.72216163669e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4222       1.0000          .0000       10.000    
     3 'Normalizat'    1.3614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73112       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=   4907.046     FROM MIGRAD    STATUS=FAILED        96 CALLS      267 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    46.444        .17466E-02** at limit **
   2  Index         2.5189        7.7627        .50000       -.26880E-04
   3  Normalizat    1.3614        .20457E-01    .22947E-03    .38397E-04
   4  Prefactor     .73101        .19720E-01    .29070E-03    .26241E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4907.046     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      406 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    46.444        .31671E-03** at limit **
   2  Index         2.5189        7.7627        .21221E-03   -.26880E-04
   3  Normalizat    1.3614        .20457E-01    .10381E-05    .38397E-04
   4  Prefactor     .73101        .19720E-01    .77065E-06    .26241E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4907.046     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      451 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    160.57        .34932E-03** at limit **
   2  Index         2.7484        7.6816        .50000        .21332E-06
   3  Normalizat    1.3614        .38867E-01    .45893E-04   -.26397E-03
   4  Prefactor     .73101        .37437E-01    .11628E-04   -.23249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.74836
  Normalizat = 1.36144
  Prefactor  = 0.731005
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.046     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      480 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    565.17        .69863E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7484        8.6155        .50000       -.46713    
   3  Normalizat    1.3614        .10203        .91786E-05   -.81750    
   4  Prefactor     .73101        .96624E-01    .23256E-05   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.15333e-09
Minuit parameter uncertainties:
  1  0.000155319
  2  944.201
  3  0.102046
  4  0.0966459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433846': 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) = 4907.04579935
delta logL = 1.53813562065e-06

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.553e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.748e+00  9.442e+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:  7.310e-01  9.665e-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.361e+00  1.020e-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/433846/cmap_HighResolution_263174401_263433601_4FGL_J1215.0+1656_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-05 05:22:17.113635', job_id='433846', GAL2='0.73', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630844537.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='92' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 433846: <4FGL_J1215.0+1656_daily_bin92> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin92> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:11:05 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:11:06 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:11:06 2021
Terminated at Sun Sep  5 05:22:17 2021
Results reported at Sun Sep  5 05:22:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin92 183.774 16.9372 263174401 263433601 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            672 sec.

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

