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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin35
RA = 183.774, Dec = 16.9372
tmin = 248400001, tmax = 248659201
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='433773', job_status='RUN', time_executed='2021-09-05 05:13:57.898745', time_epoch_executed='1630844037.9' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433773

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433773/ft1_4FGL_J1215.0+1656_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433773/ft2_4FGL_J1215.0+1656_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433773/ft1_4FGL_J1215.0+1656_daily_bin35.fits outfile=/scratch/kocevski/433773/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin35.fits ra=183.774 dec=16.9372 rad=12.0 tmin=248400001.0 tmax=248659201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.78
user 1.24
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433773/ft1_filtered_4FGL_J1215.0+1656_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/433773/ft2_4FGL_J1215.0+1656_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/433773/ltcube_248400001_248659201_4FGL_J1215.0+1656_daily_bin35.fits outfile=/scratch/kocevski/433773/expmap_248400001_248659201_4FGL_J1215.0+1656_daily_bin35.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/433773/ltcube_248400001_248659201_4FGL_J1215.0+1656_daily_bin35.fits
.....................!
real 191.59
user 185.84
sys 4.91

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/433773/ft1_filtered_4FGL_J1215.0+1656_daily_bin35.fits scfile=/scratch/kocevski/433773/ft2_4FGL_J1215.0+1656_daily_bin35.fits outfile=/scratch/kocevski/433773/cmap_248400001_248659201_4FGL_J1215.0+1656_daily_bin35.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92006       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0658       1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14535E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10856E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14694       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.368       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96923       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=   6414.561     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3178 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.284        .15851E-05** at limit **
   2  Prefactor     3.0590        15.478       -.74629E-07   -.10172E-04
   3  Prefactor     .10000E-03    16.405        .30944E-06** at limit **
   4  Prefactor     .92011        1.5462        .14525E-06    .49030E-04
   5  Prefactor     47.118        88.571        .32432E-05    .14771E-04
   6  Prefactor     .10000E-03    3.5319       -.33283E-06** at limit **
   7  Prefactor     1.7866        60.059       -.94054E-05    .45897E-05
   8  Prefactor     4.0699        4.3821        .32540E-07    .20127E-04
   9  Prefactor     59.169        95.384        .14998E-07    .80383E-05
  10  Prefactor     .10000E-03    1.8164       -.89128E-07** at limit **
  11  Prefactor     6.2887        3.2107        .15559E-07    .13687E-03
  12  Prefactor     .10000E-03    28.317       -.40560E-06** at limit **
  13  Prefactor     7.6442        3.2040       -.68194E-07    .38126E-05
  14  Prefactor     .10000E-03    7.3871       -.28962E-07** at limit **
  15  Prefactor     .10000E-03    2.3171        .15927E-08** at limit **
  16  norm          .14698        .18935        .95623E-09   -.30358E-03
  17  Prefactor     .10000E-03    64.392       -.84881E-06** at limit **
  18  norm          2.3006        3.4673        .81168E-07   -.11252E-04
  19  Prefactor     3.0170        7.6462        .26305E-06   -.26124E-05
  20  Prefactor     .10000E-03    14.184       -.20690E-06** at limit **
  21  Prefactor     .10000E-03    63.302       -.68818E-06** at limit **
  22  Prefactor     .10000E-03    4.4722       -.82455E-08** at limit **
  23  Prefactor     .10000E-03    4.7232       -.69285E-07** at limit **
  24  Prefactor     12.365        12.847        .69050E-06   -.79765E-05
  25  Normalizat    1.0194        .18371        .19293E-05    .31455E-04
  26  Prefactor     .96950        .16591       -.66873E-06    .15244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.059
  Prefactor  = 0.0001
  Prefactor  = 0.92011
  Prefactor  = 47.1179
  Prefactor  = 0.0001
  Prefactor  = 1.78662
  Prefactor  = 4.06985
  Prefactor  = 59.1688
  Prefactor  = 0.0001
  Prefactor  = 6.28874
  Prefactor  = 0.0001
  Prefactor  = 7.64424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.146979
  Prefactor  = 0.0001
  norm       = 2.30059
  Prefactor  = 3.01702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3647
  Normalizat = 1.01939
  Prefactor  = 0.969498
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.561     FROM HESSE     STATUS=OK           462 CALLS     3640 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0590        15.083        .23197E-03   -1.5358    
   3  Prefactor     .10000E-03    16.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92011        1.3635        .12052E-02   -1.5516    
   5  Prefactor     47.118        88.828        .58429E-04   -1.4334    
   6  Prefactor     .10000E-03    3.5476        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7866        59.530        .30631E-03   -1.5441    
   8  Prefactor     4.0699        4.3348        .16055E-03   -1.5304    
   9  Prefactor     59.169        95.444        .26053E-03   -1.4168    
  10  Prefactor     .10000E-03    3.7553        .20099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2887        3.1395        .95083E-04   -1.5206    
  12  Prefactor     .10000E-03    28.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6442        3.2031        .89346E-04   -1.5155    
  14  Prefactor     .10000E-03    7.3886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3282        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .14698        .17339        .37148E-03   -1.5631    
  17  Prefactor     .10000E-03    64.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3006        3.4446        .17607E-03   -1.5405    
  19  Prefactor     3.0170        7.6224        .23334E-03   -1.5361    
  20  Prefactor     .10000E-03    14.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5189        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7501        .17000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.365        12.822        .56951E-03   -1.5005    
  25  Normalizat    1.0194        .20544        .24754E-03   -.92384    
  26  Prefactor     .96950        .18909        .24695E-03   -.93753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25053e-09
Minuit parameter uncertainties:
  1  3.56639e-05
  2  13.5904
  3  5.42375e-05
  4  1.36357
  5  89.0786
  6  4.59085e-06
  7  20.6477
  8  4.33516
  9  95.6916
  10  3.18498e-05
  11  3.13959
  12  3.65403e-05
  13  3.2032
  14  1.57808e-06
  15  3.49281e-06
  16  0.173389
  17  4.13088e-05
  18  3.44485
  19  7.62489
  20  2.30052e-05
  21  7.02232e-05
  22  7.63915e-06
  23  6.6569e-06
  24  12.8246
  25  0.205595
  26  0.189219
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  6.289e+00  3.140e+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:  9.695e-01  1.892e-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.019e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.39
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.84e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.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) = 6414.07598612
delta logL = 0.484927666169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.07501801
delta logL = 0.485895777639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0605       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9952       1.0000          .0000       10.000    
     3 'Normalizat'    .95985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0052       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=   6414.075     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0603        3.6442        .64045E-04   -.86342E-03
   2  Index         2.9953        .69540        .44709E-02    .54206E-03
   3  Normalizat    .95977        .20603        .25399E-03   -.86478E-04
   4  Prefactor     1.0053        .19340        .24297E-03   -.23291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06032
  Index      = 2.99528
  Normalizat = 0.959773
  Prefactor  = 1.00531
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.075     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0603        3.2559        .25618E-05   -1.5305    
   2  Index         2.9953        .62088        .89417E-03   -.41255    
   3  Normalizat    .95977        .20461        .10159E-04   -.94391    
   4  Prefactor     1.0053        .19271        .48593E-04   -.92553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95366e-10
Minuit parameter uncertainties:
  1  3.25609
  2  0.622794
  3  0.204781
  4  0.192844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433773': 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) = 6414.07501792
delta logL = 0.485895871166

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  4.060e+00  3.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.995e+00  6.228e-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.005e+00  1.928e-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.598e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.48
Ra Dec: 183.774 16.937
Photon Index (Free Index): 3.00 +/- 0.62
Photon Flux (Free Index): 1.26e-07 +/- 6.84e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.07e-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/433773/cmap_HighResolution_248400001_248659201_4FGL_J1215.0+1656_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.84e-08', energy_flux2='2.51e-05', photon_flux_error='3.91e-08', dlogl='4.86e-01', energy_flux='2.54e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-05 05:25:20.888640', photon_index_error2='0.62', photon_index2='3.00', ts='11.39', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.02', time_epoch_completed='1630844720.89', return_code='0', job_id='433773', GAL2='1.01', EG2='0.96', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.84e-08', ts2='12.48', photon_index='2.41' WHERE bin_id='35' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:25:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 433773: <4FGL_J1215.0+1656_daily_bin35> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin35> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:11:00 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:11:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:11:02 2021
Terminated at Sun Sep  5 05:25:21 2021
Results reported at Sun Sep  5 05:25:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin35 183.774 16.9372 248400001 248659201 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

