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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1292
RA = 183.774, Dec = 16.9372
tmin = 574214401, tmax = 574473601
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='440245', job_status='RUN', time_executed='2021-09-05 05:31:06.058018', time_epoch_executed='1630845066.06' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440245/ft1_4FGL_J1215.0+1656_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440245/ft2_4FGL_J1215.0+1656_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440245/ft1_4FGL_J1215.0+1656_daily_bin1292.fits outfile=/scratch/kocevski/440245/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1292.fits ra=183.774 dec=16.9372 rad=12.0 tmin=574214401.0 tmax=574473601.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 3.57
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440245/ft2_4FGL_J1215.0+1656_daily_bin1292.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/440245/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1292.fits evtable="EVENTS" outfile="/scratch/kocevski/440245/ft1_filtered_4FGL_J1215.0+1656_daily_bin1292.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.61
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440245/ft1_filtered_4FGL_J1215.0+1656_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/440245/ft2_4FGL_J1215.0+1656_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/440245/ltcube_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.fits outfile=/scratch/kocevski/440245/expmap_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.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/440245/ltcube_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.fits
.....................!
real 191.19
user 185.99
sys 4.82

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/440245/ft1_filtered_4FGL_J1215.0+1656_daily_bin1292.fits scfile=/scratch/kocevski/440245/ft2_4FGL_J1215.0+1656_daily_bin1292.fits outfile=/scratch/kocevski/440245/cmap_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440245/ft1_filtered_4FGL_J1215.0+1656_daily_bin1292.fits scfile=/scratch/kocevski/440245/ft2_4FGL_J1215.0+1656_daily_bin1292.fits outfile=/scratch/kocevski/440245/cmap_HighResolution_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.188       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7462       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70467E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.866       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.060       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25987E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    85.710       1.0000         .10000E-03   10000.    
    18 'norm      '    9.8376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2700       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2250       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3300       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5526       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79558       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0903       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=   5293.560     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3548 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.195        42.916        .80844E-06    .42995E-05
   2  Prefactor     .10000E-03    9.9705        .57252E-07** at limit **
   3  Prefactor     .10000E-03    3.1970        .52562E-07** at limit **
   4  Prefactor     3.7465        1.9609        .97924E-07   -.71722E-04
   5  Prefactor     .10015E-03    1355.5       -.58960E-04** at limit **
   6  Prefactor     8.7040        14.168       -.23053E-05    .52602E-04
   7  Prefactor     26.868        19.691        .27189E-06   -.49851E-05
   8  Prefactor     .10000E-03    1.5433        .86079E-07** at limit **
   9  Prefactor     59.017        88.912        .10708E-06   -.36873E-04
  10  Prefactor     .10000E-03    1.4431        .11150E-06** at limit **
  11  Prefactor     .10000E-03    1.1146        .65644E-07** at limit **
  12  Prefactor     .10000E-03    83.834        .10949E-05** at limit **
  13  Prefactor     .31585        1.1276        .57587E-06   -.17729E-03
  14  Prefactor     .10000E-03    227.96        .99400E-05** at limit **
  15  Prefactor     .10000E-03    2.5130        .22325E-07** at limit **
  16  norm          .10000E-03    .15769        .11160E-06** at limit **
  17  Prefactor     85.787        126.14        .26447E-05    .37428E-04
  18  norm          9.8359        4.9806        .59882E-07   -.18570E-03
  19  Prefactor     2.2742        7.5657        .12157E-05    .20864E-04
  20  Prefactor     .10000E-03    21.929        .68963E-06** at limit **
  21  Prefactor     .10000E-03    15.717       -.37491E-06** at limit **
  22  Prefactor     4.2255        5.4450        .27633E-06   -.49343E-04
  23  Prefactor     4.3332        11.083        .88833E-05   -.12615E-03
  24  Prefactor     9.5541        16.063       -.15449E-05   -.54468E-04
  25  Normalizat    .79547        .18710       -.95542E-06   -.14362E-03
  26  Prefactor     1.0903        .18521       -.15453E-05   -.75269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74646
  Prefactor  = 0.000100147
  Prefactor  = 8.70401
  Prefactor  = 26.868
  Prefactor  = 0.0001
  Prefactor  = 59.0172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.31585
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.7865
  norm       = 9.83589
  Prefactor  = 2.27417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22554
  Prefactor  = 4.33318
  Prefactor  = 9.55413
  Normalizat = 0.795473
  Prefactor  = 1.09028
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.560     FROM HESSE     STATUS=OK           460 CALLS     4008 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.195        42.914        .69557E-04   -1.4555    
   2  Prefactor     .10000E-03    9.9985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2025        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7465        1.9594        .70934E-04   -1.5321    
   5  Prefactor     .10015E-03    1406.0        .37378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7040        14.058        .13585E-03   -1.5118    
   7  Prefactor     26.868        19.679        .77289E-04   -1.4671    
   8  Prefactor     .10000E-03    1.5662        .88224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.017        88.926        .52205E-04   -1.4170    
  10  Prefactor     .10000E-03    1.4812        .17052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1248        .74976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .31585        1.2173        .14072E-02   -1.5596    
  14  Prefactor     .10000E-03    235.57        .39958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5395        .11260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .56227        .55072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     85.787        126.25        .21697E-03   -1.3853    
  18  norm          9.8359        4.9734        .11074E-03   -1.5081    
  19  Prefactor     2.2742        7.5317        .27258E-03   -1.5406    
  20  Prefactor     .10000E-03    22.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2255        5.4396        .18671E-03   -1.5297    
  23  Prefactor     4.3332        11.183        .96792E-03   -1.5292    
  24  Prefactor     9.5541        16.031        .12966E-03   -1.5090    
  25  Normalizat    .79547        .21127        .26382E-03   -1.0024    
  26  Prefactor     1.0903        .21155        .22949E-03   -.89778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1989e-08
Minuit parameter uncertainties:
  1  42.9539
  2  8.20423e-06
  3  4.64376e-06
  4  1.95947
  5  0.029487
  6  14.0635
  7  19.6836
  8  4.74714e-06
  9  89.1269
  10  6.78685e-06
  11  3.57355e-06
  12  0.000115508
  13  1.21744
  14  0.00172283
  15  3.39315e-06
  16  3.88796e-07
  17  126.643
  18  4.97365
  19  7.53483
  20  4.15835e-05
  21  7.37201e-05
  22  5.44025
  23  11.1884
  24  16.0382
  25  0.211488
  26  0.211716
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.574e-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:  1.090e+00  2.117e-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:  7.955e-01  2.115e-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: 6.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440245/likelihoodResults_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.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) = 5293.56385732
delta logL = -0.00419422107734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5293.55966323
delta logL = -1.3314820535e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3919       1.0000          .0000       10.000    
     3 'Normalizat'    .79534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0905       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=   5293.560     FROM MIGRAD    STATUS=FAILED       110 CALLS      254 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.240        .28441E-01** at limit **
   2  Index         1.1687        6.4564        .50000       -.41584E-04
   3  Normalizat    .79547        .17212E-01    .26382E-03   -.92250E-03
   4  Prefactor     1.0903        .17363E-01    .22949E-03   -.10389E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5293.560     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      406 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.240        .24365E-03** at limit **
   2  Index         1.1687        6.4564        .22204E-03   -.41584E-04
   3  Normalizat    .79547        .17212E-01    .13620E-06   -.92250E-03
   4  Prefactor     1.0903        .17363E-01    .94342E-07   -.10389E-02
                               ERR DEF=  .500    

 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=   5293.560     FROM MIGRAD    STATUS=FAILED        70 CALLS      476 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4327        .29189E-03** at limit **
   2  Index         1.1698        9.1280        .50000       -.40894E-04
   3  Normalizat    .79547        .20732        .10553E-04   -.91637E-03
   4  Prefactor     1.0903        .20918        .91796E-05   -.10314E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.16984
  Normalizat = 0.795473
  Prefactor  = 1.09028
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.560     FROM HESSE     STATUS=OK            27 CALLS      503 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5978        .58377E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1698        5.1698        .50000       -.87265    
   3  Normalizat    .79547        .20731        .21105E-05   -1.0024    
   4  Prefactor     1.0903        .20914        .18359E-05   -.89778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23789e-07
Minuit parameter uncertainties:
  1  7.36223e-05
  2  44.5111
  3  0.207513
  4  0.209297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440245': 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): 1
logL (Free Index) = 5293.5596381
delta logL = 2.5002057555e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  7.362e-05  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.170e+00  4.451e+01  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.090e+00  2.093e-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:  7.955e-01  2.075e-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/440245/cmap_HighResolution_574214401_574473601_4FGL_J1215.0+1656_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-05 05:43:10.406475', job_id='440245', GAL2='1.09', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630845790.41', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.50e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1292' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:43:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 440245: <4FGL_J1215.0+1656_daily_bin1292> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1292> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:30:52 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:30:54 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:30:54 2021
Terminated at Sun Sep  5 05:43:12 2021
Results reported at Sun Sep  5 05:43:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1292 183.774 16.9372 574214401 574473601 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            740 sec.

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

