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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin729
RA = 183.774, Dec = 16.9372
tmin = 428284801, tmax = 428544001
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='437233', job_status='RUN', time_executed='2021-09-05 05:21:02.297502', time_epoch_executed='1630844462.3' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437233/ft1_4FGL_J1215.0+1656_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437233/ft2_4FGL_J1215.0+1656_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437233/ft1_4FGL_J1215.0+1656_daily_bin729.fits outfile=/scratch/kocevski/437233/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin729.fits ra=183.774 dec=16.9372 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.08
user 5.81
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437233/ft1_filtered_4FGL_J1215.0+1656_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/437233/ft2_4FGL_J1215.0+1656_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/437233/ltcube_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.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/437233/ft2_4FGL_J1215.0+1656_daily_bin729.fits
.....................!
real 12.11
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437233/ft1_filtered_4FGL_J1215.0+1656_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/437233/ft2_4FGL_J1215.0+1656_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/437233/ltcube_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.fits outfile=/scratch/kocevski/437233/expmap_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.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/437233/ltcube_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.fits
.....................!
real 192.97
user 187.78
sys 4.78

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437233/ft1_filtered_4FGL_J1215.0+1656_daily_bin729.fits scfile=/scratch/kocevski/437233/ft2_4FGL_J1215.0+1656_daily_bin729.fits outfile=/scratch/kocevski/437233/cmap_HighResolution_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3948       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.897       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.795       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6028       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0160       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12597E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.6218       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72799       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=   4087.160     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     4806 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.687       -.76720E-06** at limit **
   2  Prefactor     .10000E-03    19.375        .69350E-07** at limit **
   3  Prefactor     .10000E-03    3.3558       -.42047E-08** at limit **
   4  Prefactor     2.0310        2.2384        .11250E-06    .28831E-04
   5  Prefactor     .10000E-03    62.945       -.29018E-05** at limit **
   6  Prefactor     3.1643        12.826        .71902E-05    .34627E-03
   7  Prefactor     .10000E-03    13.014        .55535E-08** at limit **
   8  Prefactor     .10000E-03    1.4341       -.48535E-08** at limit **
   9  Prefactor     .10000E-03    43.453        .14804E-05** at limit **
  10  Prefactor     .10000E-03    1.5974       -.49696E-08** at limit **
  11  Prefactor     3.3955        3.6526        .96515E-07    .13806E-04
  12  Prefactor     31.060        45.093       -.28563E-06    .19599E-04
  13  Prefactor     .10000E-03    1.9981       -.57507E-08** at limit **
  14  Prefactor     45.199        44.901        .41285E-07    .84939E-06
  15  Prefactor     13.897        8.7762        .42577E-07    .21577E-04
  16  norm          1.3081        .40959        .16980E-07    .22072E-03
  17  Prefactor     25.796        202.05        .40010E-06    .73885E-06
  18  norm          5.6031        5.3816        .75905E-07    .32331E-04
  19  Prefactor     4.0179        10.983       -.14408E-06   -.82948E-04
  20  Prefactor     .10000E-03    44.805        .10433E-05** at limit **
  21  Prefactor     .10000E-03    30.699       -.68309E-06** at limit **
  22  Prefactor     .10075E-03    16.546       -.49722E-05** at limit **
  23  Prefactor     .10000E-03    8.4771       -.54860E-08** at limit **
  24  Prefactor     8.6247        20.809        .43161E-06    .54627E-05
  25  Normalizat    1.2153        .22486       -.97497E-06    .11392E-03
  26  Prefactor     .72792        .20848       -.50704E-07    .75121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03101
  Prefactor  = 0.000100003
  Prefactor  = 3.16434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.39548
  Prefactor  = 31.0602
  Prefactor  = 0.0001
  Prefactor  = 45.1995
  Prefactor  = 13.8973
  norm       = 1.30809
  Prefactor  = 25.796
  norm       = 5.60309
  Prefactor  = 4.01791
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100754
  Prefactor  = 0.0001
  Prefactor  = 8.62473
  Normalizat = 1.21535
  Prefactor  = 0.727916
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.160     FROM HESSE     STATUS=OK           456 CALLS     5262 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3635        .11438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0310        2.2265        .95257E-04   -1.5423    
   5  Prefactor     .10000E-03    63.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1643        13.554        .11398E-02   -1.5352    
   7  Prefactor     .10000E-03    13.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4407        .74749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6231        .78714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3955        3.6355        .12017E-03   -1.5339    
  12  Prefactor     31.060        45.096        .71898E-04   -1.4593    
  13  Prefactor     .10000E-03    2.0708        .17638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.199        44.898        .59636E-04   -1.4362    
  15  Prefactor     13.897        8.7836        .10745E-03   -1.4962    
  16  norm          1.3081        .41143        .21421E-04   -1.5479    
  17  Prefactor     25.796        201.98        .78874E-04   -1.4692    
  18  norm          5.6031        5.3780        .13712E-03   -1.5235    
  19  Prefactor     4.0179        10.976        .20123E-03   -1.5307    
  20  Prefactor     .10000E-03    45.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10075E-03    95.817        .36194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.4969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.6247        20.850        .13652E-03   -1.5121    
  25  Normalizat    1.2153        .26611        .23504E-03   -.86130    
  26  Prefactor     .72792        .24538        .28513E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99521e-09
Minuit parameter uncertainties:
  1  0.000283375
  2  1.34082e-05
  3  5.49388e-08
  4  2.22664
  5  0.000901917
  6  13.1026
  7  5.3089e-06
  8  2.14805e-09
  9  0.000375591
  10  1.04771e-07
  11  3.63578
  12  45.1453
  13  5.27767e-07
  14  44.932
  15  8.78437
  16  0.411433
  17  145.045
  18  5.37843
  19  10.9819
  20  0.000335988
  21  0.000144578
  22  0.0170253
  23  4.7853e-08
  24  20.8675
  25  0.266406
  26  0.245745
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.395e+00  3.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:  7.279e-01  2.457e-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.215e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.47e-05

TS (Fixed Index): 1.23
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437233/likelihoodResults_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.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): 0
logL (Free Index) = 4087.15771007
delta logL = 0.00246311878755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4087.15668465
delta logL = 0.00348853501328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2177       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4781       1.0000          .0000       10.000    
     3 'Normalizat'    1.2128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72961       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.

 FCN=   4087.157     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2156        121.50        .56461E-02    .28419E-03
   2  Index         2.4773        5.9351        .16062        .50220E-04
   3  Normalizat    1.2129        .91498E-01    .53203E-01    .81085E-05
   4  Prefactor     .72955        .82662E-01    .64388E-01    .18280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21563
  Index      = 2.47731
  Normalizat = 1.21294
  Prefactor  = 0.729547
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.157     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2156        4.3151        .11633E-03   -1.5349    
   2  Index         2.4773        .85043        .80943E-02   -.52885    
   3  Normalizat    1.2129        .25338        .23524E-03   -.86204    
   4  Prefactor     .72955        .24337        .28484E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49286e-12
Minuit parameter uncertainties:
  1  4.31549
  2  0.856028
  3  0.253639
  4  0.243725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437233': 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) = 4087.15668342
delta logL = 0.00348976806163

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.216e+00  4.315e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.477e+00  8.560e-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:  7.295e-01  2.437e-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.213e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.48 +/- 0.86
Photon Flux (Free Index): 4.42e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.57e-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/437233/cmap_HighResolution_428284801_428544001_4FGL_J1215.0+1656_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='1.32e-05', photon_flux_error='4.53e-08', dlogl='3.49e-03', energy_flux='1.37e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2021-09-05 05:32:52.870762', photon_index_error2='0.86', photon_index2='2.48', ts='1.23', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.57e-05', EG='1.22', time_epoch_completed='1630845172.87', return_code='0', job_id='437233', GAL2='0.73', EG2='1.21', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.07e-08', ts2='1.23', photon_index='2.41' WHERE bin_id='729' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:32:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 437233: <4FGL_J1215.0+1656_daily_bin729> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin729> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:20:44 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:20:46 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:20:46 2021
Terminated at Sun Sep  5 05:32:53 2021
Results reported at Sun Sep  5 05:32:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin729 183.774 16.9372 428284801 428544001 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 :                                   700.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

