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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin992
RA = 183.774, Dec = 16.9372
tmin = 496454401, tmax = 496713601
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='438840', job_status='RUN', time_executed='2021-09-05 05:26:11.996851', time_epoch_executed='1630844772.0' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438840

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438840/ft1_4FGL_J1215.0+1656_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438840/ft2_4FGL_J1215.0+1656_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438840/ft1_4FGL_J1215.0+1656_daily_bin992.fits outfile=/scratch/kocevski/438840/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin992.fits ra=183.774 dec=16.9372 rad=12.0 tmin=496454401.0 tmax=496713601.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.60
user 3.28
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438840/ft1_filtered_4FGL_J1215.0+1656_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/438840/ft2_4FGL_J1215.0+1656_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/438840/ltcube_496454401_496713601_4FGL_J1215.0+1656_daily_bin992.fits outfile=/scratch/kocevski/438840/expmap_496454401_496713601_4FGL_J1215.0+1656_daily_bin992.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/438840/ltcube_496454401_496713601_4FGL_J1215.0+1656_daily_bin992.fits
.....................!
real 191.59
user 186.49
sys 4.69

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

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438840/ft1_filtered_4FGL_J1215.0+1656_daily_bin992.fits scfile=/scratch/kocevski/438840/ft2_4FGL_J1215.0+1656_daily_bin992.fits outfile=/scratch/kocevski/438840/cmap_HighResolution_496454401_496713601_4FGL_J1215.0+1656_daily_bin992.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=183.774 yref=16.9372 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2317       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9914       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.185       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15124       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.143       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7416       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.481       1.0000         .10000E-03   10000.    
    18 'norm      '    6.8306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.341       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.361       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.402       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0141       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1081       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=   6097.555     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3131 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2305        102.70       -.36821E-05    .46294E-05
   2  Prefactor     .10000E-03    5.2036       -.79141E-07** at limit **
   3  Prefactor     .10000E-03    8.5396        .53202E-06** at limit **
   4  Prefactor     .10000E-03    .73401       -.22956E-06** at limit **
   5  Prefactor     .10000E-03    224.10       -.14983E-04** at limit **
   6  Prefactor     16.181        15.948        .10829E-04    .11818E-03
   7  Prefactor     9.0109        23.069       -.27098E-05    .94009E-04
   8  Prefactor     .10000E-03    1.4777       -.39703E-07** at limit **
   9  Prefactor     43.085        138.15       -.14354E-03    .10835E-04
  10  Prefactor     6.0968        3.6939       -.56668E-07   -.49379E-04
  11  Prefactor     .10000E-03    1.4425        .12790E-07** at limit **
  12  Prefactor     .10000E-03    13.516        .46612E-05** at limit **
  13  Prefactor     .15099        1.1364       -.60249E-06   -.20398E-03
  14  Prefactor     1.6814        242.00       -.33301E-05   -.26757E-04
  15  Prefactor     14.143        8.0940       -.28495E-06    .38444E-04
  16  norm          1.7416        .38794       -.66108E-07    .93359E-03
  17  Prefactor     47.496        114.43        .19206E-04    .30044E-05
  18  norm          6.8306        4.7264        .18614E-06    .29285E-05
  19  Prefactor     15.340        11.689       -.38656E-06   -.23610E-03
  20  Prefactor     .10000E-03    9.3315       -.10959E-05** at limit **
  21  Prefactor     .10000E-03    14.292       -.46250E-05** at limit **
  22  Prefactor     .10000E-03    1.9089       -.21856E-07** at limit **
  23  Prefactor     10.361        13.176       -.69386E-06   -.44238E-05
  24  Prefactor     15.402        16.376        .40911E-06    .90395E-05
  25  Normalizat    1.0142        .21145        .54928E-05    .14519E-04
  26  Prefactor     1.1080        .19307        .91917E-06    .23841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.2305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1808
  Prefactor  = 9.01088
  Prefactor  = 0.0001
  Prefactor  = 43.0849
  Prefactor  = 6.09682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.150995
  Prefactor  = 1.68138
  Prefactor  = 14.1432
  norm       = 1.74163
  Prefactor  = 47.496
  norm       = 6.83059
  Prefactor  = 15.3403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3611
  Prefactor  = 15.4019
  Normalizat = 1.01415
  Prefactor  = 1.10803
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.555     FROM HESSE     STATUS=OK           460 CALLS     3591 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2305        104.21        .14916E-03   -1.5170    
   2  Prefactor     .10000E-03    5.2059        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2060        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    224.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.181        15.951        .99583E-04   -1.4903    
   7  Prefactor     9.0109        22.923        .13367E-03   -1.5108    
   8  Prefactor     .10000E-03    1.4836        .92648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.085        137.86        .61005E-04   -1.4394    
  10  Prefactor     6.0968        3.6899        .10999E-03   -1.5214    
  11  Prefactor     .10000E-03    1.4541        .91445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15099        4.7186        .16077E-02   -1.5630    
  14  Prefactor     1.6814        243.11        .32485E-03   -1.5449    
  15  Prefactor     14.143        8.0886        .10650E-03   -1.4956    
  16  norm          1.7416        .38939        .21565E-04   -1.5444    
  17  Prefactor     47.496        114.20        .58191E-04   -1.4329    
  18  norm          6.8306        4.7213        .13413E-03   -1.5185    
  19  Prefactor     15.340        11.693        .51130E-03   -1.4924    
  20  Prefactor     .10000E-03    9.3362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9117        .10536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.361        13.164        .12448E-03   -1.5064    
  24  Prefactor     15.402        16.369        .10205E-03   -1.4923    
  25  Normalizat    1.0142        .25411        .28476E-03   -.92558    
  26  Prefactor     1.1080        .23194        .26571E-03   -.89210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88799e-08
Minuit parameter uncertainties:
  1  55.0158
  2  7.02171e-06
  3  3.58448e-05
  4  2.46298e-05
  5  0.000438858
  6  15.9549
  7  22.9451
  8  4.6686e-06
  9  138.894
  10  3.69001
  11  4.73691e-06
  12  8.64239e-06
  13  1.68775
  14  40.6037
  15  8.08924
  16  0.389387
  17  114.728
  18  4.72157
  19  11.6949
  20  2.00697e-06
  21  8.36049e-06
  22  4.16415e-06
  23  13.168
  24  16.3736
  25  0.254414
  26  0.23215
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.737e-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.108e+00  2.322e-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.014e+00  2.544e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438840/likelihoodResults_496454401_496713601_4FGL_J1215.0+1656_daily_bin992.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) = 6097.55821411
delta logL = -0.00324952518349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6097.55496507
delta logL = -4.89721060148e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3860       1.0000          .0000       10.000    
     3 'Normalizat'    1.0140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1082       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=   6097.555     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.732        .93665E-02** at limit **
   2  Index         1.8031        5.2697        .50000       -.58672E-06
   3  Normalizat    1.0142        .12475E-01    .28476E-03   -.52979E-03
   4  Prefactor     1.1080        .12169E-01    .26571E-03   -.54969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80308
  Normalizat = 1.01416
  Prefactor  = 1.10803
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.555     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    110.12        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8031        8.7638        .50000       -.69370    
   3  Normalizat    1.0142        .38372E-01    .56952E-04   -.92558    
   4  Prefactor     1.1080        .37430E-01    .53142E-04   -.89210    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33005e-09
Minuit parameter uncertainties:
  1  3.28363e-05
  2  424.078
  3  0.0383728
  4  0.0374313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438840': 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) = 6097.55495377
delta logL = 1.08102431113e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.284e-05  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.803e+00  4.241e+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:  1.108e+00  3.743e-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.014e+00  3.837e-02  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/438840/cmap_HighResolution_496454401_496713601_4FGL_J1215.0+1656_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-05 05:38:29.381104', job_id='438840', GAL2='1.11', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630845509.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.08e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='992' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:38:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 438840: <4FGL_J1215.0+1656_daily_bin992> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin992 183.774 16.9372 496454401 496713601 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

