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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1015
RA = 183.774, Dec = 16.9372
tmin = 502416001, tmax = 502675201
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='438863', job_status='RUN', time_executed='2021-09-05 05:28:15.245381', time_epoch_executed='1630844895.25' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438863/ft1_4FGL_J1215.0+1656_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438863/ft2_4FGL_J1215.0+1656_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438863/ft1_4FGL_J1215.0+1656_daily_bin1015.fits outfile=/scratch/kocevski/438863/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1015.fits ra=183.774 dec=16.9372 rad=12.0 tmin=502416001.0 tmax=502675201.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.56
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438863/ft1_filtered_4FGL_J1215.0+1656_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/438863/ft2_4FGL_J1215.0+1656_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/438863/ltcube_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.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/438863/ft2_4FGL_J1215.0+1656_daily_bin1015.fits
.....................!
real 11.96
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438863/ft1_filtered_4FGL_J1215.0+1656_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/438863/ft2_4FGL_J1215.0+1656_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/438863/ltcube_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.fits outfile=/scratch/kocevski/438863/expmap_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.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/438863/ltcube_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.fits
.....................!
real 190.89
user 184.42
sys 6.10

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/438863/ft1_filtered_4FGL_J1215.0+1656_daily_bin1015.fits scfile=/scratch/kocevski/438863/ft2_4FGL_J1215.0+1656_daily_bin1015.fits outfile=/scratch/kocevski/438863/cmap_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438863/ft1_filtered_4FGL_J1215.0+1656_daily_bin1015.fits scfile=/scratch/kocevski/438863/ft2_4FGL_J1215.0+1656_daily_bin1015.fits outfile=/scratch/kocevski/438863/cmap_HighResolution_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92712E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5750       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .13436       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0255       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.120       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45784E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83768       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1416       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=   6229.803     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     2781 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    32.850       -.10785E-05** at limit **
   2  Prefactor     16.500        17.938       -.33821E-05   -.39229E-05
   3  Prefactor     9.0670        8.1357        .68913E-06    .67600E-06
   4  Prefactor     .10000E-03    .50510        .12535E-07** at limit **
   5  Prefactor     .10000E-03    42.201       -.46306E-06** at limit **
   6  Prefactor     .10000E-03    17.119       -.40497E-05** at limit **
   7  Prefactor     24.761        16.193        .30847E-05    .72602E-04
   8  Prefactor     .10000E-03    .99570       -.71979E-08** at limit **
   9  Prefactor     17.984        90.958       -.24836E-04    .15182E-04
  10  Prefactor     27.122        5.1348       -.35218E-07    .23221E-03
  11  Prefactor     1.8494        3.2137       -.44313E-06   -.60951E-03
  12  Prefactor     .10000E-03    17.086        .75031E-05** at limit **
  13  Prefactor     1.5745        2.0647       -.23969E-06   -.61427E-03
  14  Prefactor     .10000E-03    14.337        .40193E-07** at limit **
  15  Prefactor     .10000E-03    3.2153        .74031E-08** at limit **
  16  norm          .13432        .21746       -.16334E-06   -.32700E-02
  17  Prefactor     .10000E-03    62.574       -.34434E-05** at limit **
  18  norm          5.0246        3.9906       -.91202E-07   -.69789E-05
  19  Prefactor     43.114        16.740       -.54334E-07    .66147E-04
  20  Prefactor     .10000E-03    16.501       -.31828E-05** at limit **
  21  Prefactor     .10000E-03    59.380        .42473E-05** at limit **
  22  Prefactor     .10001E-03    4.7527       -.21594E-06** at limit **
  23  Prefactor     10.571        10.679       -.47297E-05   -.49972E-04
  24  Prefactor     .10000E-03    5.7534        .99418E-07** at limit **
  25  Normalizat    .83797        .18767        .20413E-05    .11150E-03
  26  Prefactor     1.1416        .17755        .17376E-06    .19738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Prefactor  = 16.5
  Prefactor  = 9.06697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.7613
  Prefactor  = 0.0001
  Prefactor  = 17.9837
  Prefactor  = 27.122
  Prefactor  = 1.84935
  Prefactor  = 0.0001
  Prefactor  = 1.57448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.134322
  Prefactor  = 0.0001
  norm       = 5.02458
  Prefactor  = 43.1144
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 10.571
  Prefactor  = 0.0001
  Normalizat = 0.837967
  Prefactor  = 1.14158
 **********
 **   18 **HESSE 
 **********

 FCN=   6229.803     FROM HESSE     STATUS=OK           470 CALLS     3251 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    34.680        .12585       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.500        17.971        .98579E-04   -1.4895    
   3  Prefactor     9.0670        8.1289        .13309E-03   -1.5106    
   4  Prefactor     .10000E-03    .51085        .54735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.761        16.148        .80505E-04   -1.4712    
   8  Prefactor     .10000E-03    1.0014        .76889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.984        89.766        .94306E-04   -1.4860    
  10  Prefactor     27.122        5.0950        .70158E-04   -1.4666    
  11  Prefactor     1.8494        3.1864        .17052E-03   -1.5436    
  12  Prefactor     .10000E-03    17.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5745        2.0504        .12545E-03   -1.5457    
  14  Prefactor     .10000E-03    14.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2561        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .13432        .21406        .43796E-04   -1.5635    
  17  Prefactor     .10000E-03    62.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0246        3.9845        .13487E-03   -1.5260    
  19  Prefactor     43.114        16.741        .61050E-04   -1.4394    
  20  Prefactor     .10000E-03    16.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    59.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    5.3437        .53502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.571        10.715        .12322E-03   -1.5058    
  24  Prefactor     .10000E-03    5.7689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83797        .21894        .28545E-03   -.98675    
  26  Prefactor     1.1416        .20856        .24898E-03   -.88149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78576e-10
Minuit parameter uncertainties:
  1  0.00164392
  2  17.9768
  3  8.12992
  4  1.62252e-06
  5  5.34146e-06
  6  0.000195167
  7  16.1512
  8  1.2925e-06
  9  80.5507
  10  5.09504
  11  3.18669
  12  1.2919e-05
  13  2.05047
  14  5.68769e-06
  15  5.81197e-08
  16  0.214057
  17  1.13836e-05
  18  3.98468
  19  16.743
  20  4.98825e-06
  21  0.000387713
  22  0.000470295
  23  10.7173
  24  2.48241e-05
  25  0.219173
  26  0.208708
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.849e+00  3.187e+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:  1.142e+00  2.087e-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:  8.380e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438863/likelihoodResults_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.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) = 6229.41896517
delta logL = 0.383738594402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6229.4180299
delta logL = 0.384673869112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0688       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3576       1.0000          .0000       10.000    
     3 'Normalizat'    .80313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1611       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=   6229.418     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      252 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0640        19.707        .11763E-01    .95183E-03
   2  Index         3.3601        3.5907        .12882        .13146E-03
   3  Normalizat    .80312        .45315E-01    .65666E-01    .27034E-05
   4  Prefactor     1.1611        .45070E-01    .55847E-01   -.15037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06403
  Index      = 3.36011
  Normalizat = 0.803115
  Prefactor  = 1.16114
 **********
 **   18 **HESSE 
 **********

 FCN=   6229.418     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0640        3.0630        .77264E-04   -1.5502    
   2  Index         3.3601        1.6858        .75088E-02   -.33416    
   3  Normalizat    .80312        .21334        .29051E-03   -.99953    
   4  Prefactor     1.1611        .21092        .24693E-03   -.87536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80112e-08
Minuit parameter uncertainties:
  1  3.06348
  2  1.72386
  3  0.213563
  4  0.211076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438863': 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) = 6229.41802712
delta logL = 0.384676649021

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.064e+00  3.063e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.360e+00  1.724e+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.161e+00  2.111e-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:  8.031e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 183.774 16.937
Photon Index (Free Index): 3.36 +/- 1.72
Photon Flux (Free Index): 6.09e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.09e-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/438863/cmap_HighResolution_502416001_502675201_4FGL_J1215.0+1656_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='3.85e-01', photon_flux2='6.09e-08', job_status='DONE', time_completed='2021-09-05 05:40:27.837648', photon_index_error2='1.72', photon_index2='3.36', ts='0.49', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.09e-05', EG='0.84', time_epoch_completed='1630845627.84', return_code='0', job_id='438863', GAL2='1.16', EG2='0.80', return_code2='0', photon_flux_error2='6.26e-08', ts2='1.29', photon_index='2.41' WHERE bin_id='1015' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 438863: <4FGL_J1215.0+1656_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1015 183.774 16.9372 502416001 502675201 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 :                                   726.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

