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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin338
RA = 183.774, Dec = 16.9372
tmin = 326937601, tmax = 327196801
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='435380', job_status='RUN', time_executed='2021-09-05 05:15:41.508257', time_epoch_executed='1630844141.51' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435380

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435380/ft1_4FGL_J1215.0+1656_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435380/ft2_4FGL_J1215.0+1656_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435380/ft1_4FGL_J1215.0+1656_daily_bin338.fits outfile=/scratch/kocevski/435380/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin338.fits ra=183.774 dec=16.9372 rad=12.0 tmin=326937601.0 tmax=327196801.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.32
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435380/ft2_4FGL_J1215.0+1656_daily_bin338.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/435380/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin338.fits evtable="EVENTS" outfile="/scratch/kocevski/435380/ft1_filtered_4FGL_J1215.0+1656_daily_bin338.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/435380/ft1_filtered_4FGL_J1215.0+1656_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/435380/ft2_4FGL_J1215.0+1656_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/435380/ltcube_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.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/435380/ft2_4FGL_J1215.0+1656_daily_bin338.fits
.....................!
real 11.64
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435380/ft1_filtered_4FGL_J1215.0+1656_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/435380/ft2_4FGL_J1215.0+1656_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/435380/ltcube_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.fits outfile=/scratch/kocevski/435380/expmap_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.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/435380/ltcube_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.fits
.....................!
real 189.64
user 184.61
sys 4.73

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/435380/ft1_filtered_4FGL_J1215.0+1656_daily_bin338.fits scfile=/scratch/kocevski/435380/ft2_4FGL_J1215.0+1656_daily_bin338.fits outfile=/scratch/kocevski/435380/cmap_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435380/ft1_filtered_4FGL_J1215.0+1656_daily_bin338.fits scfile=/scratch/kocevski/435380/ft2_4FGL_J1215.0+1656_daily_bin338.fits outfile=/scratch/kocevski/435380/cmap_HighResolution_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4872       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8126       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8678       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12703E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11220E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0030       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1355       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15340E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91949       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2136       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=   5812.887     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     2689 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.659       -.82586E-06** at limit **
   2  Prefactor     .10000E-03    19.579       -.54190E-07** at limit **
   3  Prefactor     .10000E-03    5.9578       -.15090E-06** at limit **
   4  Prefactor     1.4874        1.6954       -.84805E-07   -.56973E-03
   5  Prefactor     .10000E-03    67.410        .12654E-05** at limit **
   6  Prefactor     1.1081        2.3920        .73465E-06   -.92018E-03
   7  Prefactor     .10000E-03    9.5460       -.42726E-07** at limit **
   8  Prefactor     3.2708        5.2824        .24285E-06   -.60667E-03
   9  Prefactor     .10000E-03    38.188       -.11305E-05** at limit **
  10  Prefactor     2.8130        3.0896        .87775E-07    .14636E-03
  11  Prefactor     .10000E-03    1.6153        .21878E-06** at limit **
  12  Prefactor     .10000E-03    17.474       -.13873E-06** at limit **
  13  Prefactor     1.8676        1.7038        .19221E-07   -.30958E-04
  14  Prefactor     36.639        30.126       -.18497E-06   -.45558E-04
  15  Prefactor     .10000E-03    4.4315       -.15769E-06** at limit **
  16  norm          1.1192        .31386        .28485E-07    .14142E-02
  17  Prefactor     .10000E-03    622.81        .35430E-05** at limit **
  18  norm          2.0026        2.0174        .14659E-07    .18801E-04
  19  Prefactor     8.1352        8.2383        .23349E-07    .18253E-03
  20  Prefactor     20.998        30.539       -.14860E-05    .77338E-05
  21  Prefactor     .10000E-03    87.264       -.14792E-05** at limit **
  22  Prefactor     .10000E-03    10.962       -.44664E-06** at limit **
  23  Prefactor     14.186        11.646        .24229E-06    .27740E-03
  24  Prefactor     .10000E-03    38.499       -.25266E-04** at limit **
  25  Normalizat    .91963        .20002       -.20547E-05   -.93702E-04
  26  Prefactor     1.2134        .18980        .12834E-05    .15904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48743
  Prefactor  = 0.0001
  Prefactor  = 1.10806
  Prefactor  = 0.0001
  Prefactor  = 3.27085
  Prefactor  = 0.0001
  Prefactor  = 2.81296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86764
  Prefactor  = 36.6388
  Prefactor  = 0.0001
  norm       = 1.11918
  Prefactor  = 0.000100001
  norm       = 2.00256
  Prefactor  = 8.1352
  Prefactor  = 20.9982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1861
  Prefactor  = 0.0001
  Normalizat = 0.919627
  Prefactor  = 1.21339
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.887     FROM HESSE     STATUS=OK           456 CALLS     3145 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4874        1.6739        .10152E-03   -1.5464    
   5  Prefactor     .10000E-03    67.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1081        10.900        .22471E-02   -1.5497    
   7  Prefactor     .10000E-03    9.5822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2708        5.5083        .10232E-02   -1.5346    
   9  Prefactor     .10000E-03    38.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8130        3.0563        .12687E-03   -1.5373    
  11  Prefactor     .10000E-03    1.6490        .94497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8676        1.7054        .92293E-04   -1.5435    
  14  Prefactor     36.639        30.132        .66209E-04   -1.4497    
  15  Prefactor     .10000E-03    4.6322        .31333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1192        .31467        .21349E-04   -1.5496    
  17  Prefactor     .10000E-03    625.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0026        2.0297        .10589E-03   -1.5425    
  19  Prefactor     8.1352        8.2267        .14056E-03   -1.5137    
  20  Prefactor     20.998        30.539        .87364E-04   -1.4791    
  21  Prefactor     .10000E-03    87.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.186        11.624        .10628E-03   -1.4954    
  24  Prefactor     .10000E-03    38.385        .39964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .91963        .23535        .27656E-03   -.95774    
  26  Prefactor     1.2134        .22314        .24510E-03   -.85920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31348e-09
Minuit parameter uncertainties:
  1  7.04202e-05
  2  0.000141893
  3  2.84384e-05
  4  1.67399
  5  3.58417e-05
  6  6.95199
  7  1.38231e-05
  8  5.5092
  9  5.71858e-05
  10  3.05642
  11  2.30089e-05
  12  1.34051e-05
  13  1.70548
  14  30.1448
  15  2.44182e-05
  16  0.314674
  17  0.00156687
  18  2.02975
  19  8.22787
  20  30.5615
  21  0.000330311
  22  0.000119532
  23  11.6259
  24  4.33307e-05
  25  0.235615
  26  0.223312
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.213e+00  2.233e-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:  9.196e-01  2.356e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435380/likelihoodResults_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.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) = 5812.88999047
delta logL = -0.00287963298797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5812.88711092
delta logL = -7.53007043386e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4216       1.0000          .0000       10.000    
     3 'Normalizat'    .91967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2134       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=   5812.887     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.9798        .18992E-03** at limit **
   2  Index         2.4339        6.2128        .50000       -.65838E-04
   3  Normalizat    .91963        .21831        .27656E-03   -.18498E-05
   4  Prefactor     1.2134        .21989        .24510E-03    .17626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.43391
  Normalizat = 0.91963
  Prefactor  = 1.21339
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.887     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.6770        .37984E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4339        6.2159        .50000       -.53893    
   3  Normalizat    .91963        .21853        .11063E-04   -.95774    
   4  Prefactor     1.2134        .22011        .98042E-05   -.85920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42566e-09
Minuit parameter uncertainties:
  1  0.000221912
  2  4.30298
  3  0.218738
  4  0.220276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435380': 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) = 5812.88711049
delta logL = 3.55021256837e-07

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.219e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.434e+00  4.303e+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.213e+00  2.203e-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:  9.196e-01  2.187e-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/435380/cmap_HighResolution_326937601_327196801_4FGL_J1215.0+1656_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-05 05:27:00.413934', job_id='435380', GAL2='1.21', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630844820.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='338' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 435380: <4FGL_J1215.0+1656_daily_bin338> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin338> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 05:15:32 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:15:33 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:15:33 2021
Terminated at Sun Sep  5 05:27:01 2021
Results reported at Sun Sep  5 05:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin338 183.774 16.9372 326937601 327196801 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 :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            689 sec.

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

