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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1008
RA = 183.774, Dec = 16.9372
tmin = 500601601, tmax = 500860801
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='438856', job_status='RUN', time_executed='2021-09-05 05:26:13.760053', time_epoch_executed='1630844773.76' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438856/ft1_4FGL_J1215.0+1656_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438856/ft2_4FGL_J1215.0+1656_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438856/ft1_4FGL_J1215.0+1656_daily_bin1008.fits outfile=/scratch/kocevski/438856/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1008.fits ra=183.774 dec=16.9372 rad=12.0 tmin=500601601.0 tmax=500860801.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.13
user 4.85
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438856/ft1_filtered_4FGL_J1215.0+1656_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/438856/ft2_4FGL_J1215.0+1656_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/438856/ltcube_500601601_500860801_4FGL_J1215.0+1656_daily_bin1008.fits outfile=/scratch/kocevski/438856/expmap_500601601_500860801_4FGL_J1215.0+1656_daily_bin1008.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/438856/ltcube_500601601_500860801_4FGL_J1215.0+1656_daily_bin1008.fits
.....................!
real 194.18
user 187.79
sys 5.23

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/438856/ft1_filtered_4FGL_J1215.0+1656_daily_bin1008.fits scfile=/scratch/kocevski/438856/ft2_4FGL_J1215.0+1656_daily_bin1008.fits outfile=/scratch/kocevski/438856/cmap_500601601_500860801_4FGL_J1215.0+1656_daily_bin1008.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.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.036       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19667E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18776E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9330       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .73059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    103.48       1.0000         .10000E-03   10000.    
    18 'norm      '    .43081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5186       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3828       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11935E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4855       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54579       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=   4654.919     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3098 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.034        48.160        .80141E-08   -.15177E-04
   2  Prefactor     .10000E-03    8.5735       -.18061E-06** at limit **
   3  Prefactor     5.4738        11.831        .49445E-05   -.21274E-03
   4  Prefactor     .10000E-03    .82101        .16791E-07** at limit **
   5  Prefactor     .10000E-03    55.013        .22434E-05** at limit **
   6  Prefactor     .10000E-03    18.601       -.21094E-05** at limit **
   7  Prefactor     .10000E-03    19.411       -.12841E-05** at limit **
   8  Prefactor     .10000E-03    4.3154       -.14494E-06** at limit **
   9  Prefactor     .10013E-03    506.59       -.21092E-04** at limit **
  10  Prefactor     .10008E-03    2.6944        .82330E-06** at limit **
  11  Prefactor     13.836        6.0813        .10164E-06   -.72928E-03
  12  Prefactor     .10000E-03    7.9201        .24039E-06** at limit **
  13  Prefactor     4.9316        4.0158        .17641E-05   -.21099E-03
  14  Prefactor     .10001E-03    24.242        .56519E-05** at limit **
  15  Prefactor     .10000E-03    3.5618       -.26044E-07** at limit **
  16  norm          .73060        .33218        .19472E-07   -.12363E-03
  17  Prefactor     103.46        123.48       -.18558E-05   -.70825E-04
  18  norm          .45210        4.0516       -.12880E-05    .46935E-03
  19  Prefactor     .10000E-03    6.8778        .11199E-06** at limit **
  20  Prefactor     .10000E-03    28.311        .11568E-05** at limit **
  21  Prefactor     6.5513        94.197        .55604E-05    .52930E-04
  22  Prefactor     .10000E-03    6.8278       -.48447E-08** at limit **
  23  Prefactor     7.3856        18.628       -.82364E-06    .13936E-04
  24  Prefactor     .10001E-03    30.110       -.62891E-05** at limit **
  25  Normalizat    1.4856        .23096       -.81527E-06    .15072E-04
  26  Prefactor     .54579        .20188       -.14747E-05   -.11491E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.0344
  Prefactor  = 0.0001
  Prefactor  = 5.47384
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 0.000100083
  Prefactor  = 13.8358
  Prefactor  = 0.0001
  Prefactor  = 4.93163
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.730598
  Prefactor  = 103.462
  norm       = 0.452104
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.55133
  Prefactor  = 0.0001
  Prefactor  = 7.3856
  Prefactor  = 0.000100011
  Normalizat = 1.48557
  Prefactor  = 0.545788
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.919     FROM HESSE     STATUS=OK           450 CALLS     3548 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.034        48.253        .52216E-04   -1.4170    
   2  Prefactor     .10000E-03    8.5828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4738        12.105        .85894E-03   -1.5240    
   4  Prefactor     .10000E-03    .83086        .60347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3900        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10013E-03    522.71        .20244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10008E-03    16.514        .19248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.836        5.6353        .96218E-04   -1.4964    
  12  Prefactor     .10000E-03    7.9229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9316        4.1123        .59267E-03   -1.5264    
  14  Prefactor     .10001E-03    25.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5725        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .73060        .33066        .25034E-04   -1.5537    
  17  Prefactor     103.46        124.04        .19763E-03   -1.3670    
  18  norm          .45210        23.348        .25068E-02   -1.5573    
  19  Prefactor     .10000E-03    6.9086        .17475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5513        93.227        .15719E-03   -1.5196    
  22  Prefactor     .10000E-03    6.9000        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3856        18.495        .14761E-03   -1.5164    
  24  Prefactor     .10001E-03    31.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4856        .27374        .22785E-03   -.78184    
  26  Prefactor     .54579        .23644        .32508E-03   -1.0992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88988e-09
Minuit parameter uncertainties:
  1  48.285
  2  2.1333e-05
  3  12.1106
  4  4.18972e-07
  5  0.000653873
  6  0.000226575
  7  0.00018127
  8  2.83539e-05
  9  0.0165686
  10  0.00233543
  11  5.63551
  12  2.7528e-05
  13  4.11254
  14  0.00112433
  15  5.11376e-06
  16  0.330663
  17  124.357
  18  6.49989
  19  1.23712e-05
  20  0.000240317
  21  49.5201
  22  3.64274e-06
  23  18.5091
  24  0.00115597
  25  0.274009
  26  0.236867
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.384e+01  5.636e+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:  5.458e-01  2.369e-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.486e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.74
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 7.02e-08
Energy Flux (Fixed Index): 5.58e-05 +/- 2.27e-05

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): 0
logL (Free Index) = 4654.85703225
delta logL = 0.0616994317115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4654.85040367
delta logL = 0.068328014022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5550       1.0000          .0000       10.000    
     3 'Normalizat'    1.4600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56145       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4654.850     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      272 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.588        6.5008        .44270E-03   -.11646E-03
   2  Index         2.5551        .41167        .40560E-02    .36339E-03
   3  Normalizat    1.4600        .26991        .22938E-03    .11201E-05
   4  Prefactor     .56147        .23830        .32085E-03    .18071E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5878
  Index      = 2.55508
  Normalizat = 1.45997
  Prefactor  = 0.561475
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.850     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.588        6.2953        .17708E-04   -1.4998    
   2  Index         2.5551        .39826        .81119E-03   -.51093    
   3  Normalizat    1.4600        .26980        .45876E-04   -.78909    
   4  Prefactor     .56147        .23823        .12834E-04   -1.0923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82896e-12
Minuit parameter uncertainties:
  1  6.29567
  2  0.398818
  3  0.270068
  4  0.238653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438856': 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) = 4654.85040356
delta logL = 0.068328120411

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.259e+01  6.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.555e+00  3.988e-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:  5.615e-01  2.387e-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.460e+00  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.83
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.56 +/- 0.40
Photon Flux (Free Index): 1.94e-07 +/- 9.45e-08
Energy Flux (Free Index): 5.32e-05 +/- 2.17e-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/438856/cmap_HighResolution_500601601_500860801_4FGL_J1215.0+1656_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='5.32e-05', photon_flux_error='7.02e-08', dlogl='6.83e-02', energy_flux='5.58e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-05 05:36:04.240759', photon_index_error2='0.40', photon_index2='2.56', ts='12.74', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.49', time_epoch_completed='1630845364.24', return_code='0', job_id='438856', GAL2='0.56', EG2='1.46', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='9.45e-08', ts2='12.83', photon_index='2.41' WHERE bin_id='1008' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 438856: <4FGL_J1215.0+1656_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1008> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 05:25:57 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:25:58 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:25:58 2021
Terminated at Sun Sep  5 05:36:04 2021
Results reported at Sun Sep  5 05:36:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1008 183.774 16.9372 500601601 500860801 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 :                                   582.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             384.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            607 sec.

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

