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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin276
RA = 183.774, Dec = 16.9372
tmin = 310867201, tmax = 311126401
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='435290', job_status='RUN', time_executed='2021-09-05 05:15:44.355262', time_epoch_executed='1630844144.36' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435290/ft1_4FGL_J1215.0+1656_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435290/ft2_4FGL_J1215.0+1656_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435290/ft1_4FGL_J1215.0+1656_daily_bin276.fits outfile=/scratch/kocevski/435290/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin276.fits ra=183.774 dec=16.9372 rad=12.0 tmin=310867201.0 tmax=311126401.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.51
user 3.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435290/ft2_4FGL_J1215.0+1656_daily_bin276.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/435290/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin276.fits evtable="EVENTS" outfile="/scratch/kocevski/435290/ft1_filtered_4FGL_J1215.0+1656_daily_bin276.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435290/ft1_filtered_4FGL_J1215.0+1656_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/435290/ft2_4FGL_J1215.0+1656_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/435290/ltcube_310867201_311126401_4FGL_J1215.0+1656_daily_bin276.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/435290/ft2_4FGL_J1215.0+1656_daily_bin276.fits
.....................!
real 11.86
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435290/ft1_filtered_4FGL_J1215.0+1656_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/435290/ft2_4FGL_J1215.0+1656_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/435290/ltcube_310867201_311126401_4FGL_J1215.0+1656_daily_bin276.fits outfile=/scratch/kocevski/435290/expmap_310867201_311126401_4FGL_J1215.0+1656_daily_bin276.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/435290/ltcube_310867201_311126401_4FGL_J1215.0+1656_daily_bin276.fits
.....................!
real 190.94
user 185.90
sys 4.57

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-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 '    1.8051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84125E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84866E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28376E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2436       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8711       1.0000         .10000E-03   10000.    
    17 'Prefactor '    113.96       1.0000         .10000E-03   10000.    
    18 'norm      '    .34282E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0049       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8456       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8025       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.408       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1364       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0600       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=   6683.285     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3126 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.043       -.19170E-06** at limit **
   2  Prefactor     .10000E-03    9.6738        .35523E-07** at limit **
   3  Prefactor     .10000E-03    2.4560        .17500E-07** at limit **
   4  Prefactor     1.8060        1.9095        .19435E-06    .50687E-04
   5  Prefactor     .10000E-03    28.081        .22376E-06** at limit **
   6  Prefactor     22.183        11.594       -.49603E-07   -.99072E-04
   7  Prefactor     .10011E-03    10.546        .13174E-05** at limit **
   8  Prefactor     .10002E-03    2.2680       -.13027E-06** at limit **
   9  Prefactor     .10000E-03    194.40       -.11083E-05** at limit **
  10  Prefactor     5.2457        3.8398        .62561E-07   -.10201E-04
  11  Prefactor     3.1860        3.2611        .14942E-06   -.13685E-04
  12  Prefactor     8.6987        27.532        .33012E-06   -.15695E-04
  13  Prefactor     1.9608        2.6499        .32662E-06    .29754E-04
  14  Prefactor     .10000E-03    16.365        .15124E-06** at limit **
  15  Prefactor     .10000E-03    1.8391        .54239E-08** at limit **
  16  norm          1.8711        .42085        .64782E-08   -.37663E-03
  17  Prefactor     113.97        106.95        .32894E-06    .16224E-04
  18  norm          .10000E-03    2.7761        .60694E-07** at limit **
  19  Prefactor     10.813        10.741        .13449E-06   -.93718E-05
  20  Prefactor     .10000E-03    10.639        .13211E-08** at limit **
  21  Prefactor     8.9573        36.255       -.28929E-06   -.68210E-04
  22  Prefactor     7.8458        9.9561        .30693E-05    .82083E-04
  23  Prefactor     8.8043        15.433        .73664E-08    .99836E-06
  24  Prefactor     22.414        21.192        .28658E-06   -.76646E-05
  25  Normalizat    1.1362        .21354       -.19815E-05   -.41921E-04
  26  Prefactor     1.0601        .19112        .56412E-06   -.14715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80602
  Prefactor  = 0.0001
  Prefactor  = 22.1828
  Prefactor  = 0.000100108
  Prefactor  = 0.000100019
  Prefactor  = 0.000100002
  Prefactor  = 5.24573
  Prefactor  = 3.18595
  Prefactor  = 8.69873
  Prefactor  = 1.96083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87111
  Prefactor  = 113.972
  norm       = 0.0001
  Prefactor  = 10.8126
  Prefactor  = 0.0001
  Prefactor  = 8.95729
  Prefactor  = 7.84581
  Prefactor  = 8.80433
  Prefactor  = 22.4138
  Normalizat = 1.13619
  Prefactor  = 1.0601
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.285     FROM HESSE     STATUS=OK           466 CALLS     3592 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4574        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8060        1.8930        .11114E-03   -1.5439    
   5  Prefactor     .10000E-03    28.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.183        11.562        .85015E-04   -1.4766    
   7  Prefactor     .10011E-03    76.364        .49438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    23.462        .22855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    196.03        .21413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2457        3.7547        .12009E-03   -1.5250    
  11  Prefactor     3.1860        3.2374        .13492E-03   -1.5351    
  12  Prefactor     8.6987        27.540        .13583E-03   -1.5118    
  13  Prefactor     1.9608        2.6295        .14892E-03   -1.5428    
  14  Prefactor     .10000E-03    16.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8412        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8711        .42218        .23463E-04   -1.5434    
  17  Prefactor     113.97        106.94        .18843E-03   -1.3569    
  18  norm          .10000E-03    6.3619        .26322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.813        10.743        .12186E-03   -1.5050    
  20  Prefactor     .10000E-03    10.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9573        36.050        .13356E-03   -1.5109    
  22  Prefactor     7.8458        10.013        .71578E-03   -1.5148    
  23  Prefactor     8.8043        15.353        .13510E-03   -1.5114    
  24  Prefactor     22.414        21.173        .84616E-04   -1.4761    
  25  Normalizat    1.1362        .24968        .28697E-03   -.88598    
  26  Prefactor     1.0601        .22660        .27887E-03   -.90752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24514e-09
Minuit parameter uncertainties:
  1  0.000106407
  2  7.6575e-06
  3  1.44779e-06
  4  1.8931
  5  0.000116261
  6  11.5635
  7  0.00575265
  8  0.00132999
  9  0.00118108
  10  3.75487
  11  3.23758
  12  27.5805
  13  2.62965
  14  3.86479e-05
  15  3.31121e-07
  16  0.422176
  17  107.12
  18  5.64955e-06
  19  10.7451
  20  5.01587e-06
  21  35.977
  22  10.0156
  23  15.36
  24  21.18
  25  0.249937
  26  0.226805
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.186e+00  3.238e+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.060e+00  2.268e-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.136e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/435290/likelihoodResults_310867201_311126401_4FGL_J1215.0+1656_daily_bin276.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) = 6683.28308814
delta logL = 0.00184651272411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.28257869
delta logL = 0.00235596951006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2869       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3548       1.0000          .0000       10.000    
     3 'Normalizat'    1.1383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0588       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=   6683.283     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2884        84.361        .55834E-02    .40439E-03
   2  Index         2.3549        6.1194        .24082        .44020E-04
   3  Normalizat    1.1383        .72619E-01    .64822E-01    .93820E-05
   4  Prefactor     1.0588        .60670E-01    .63087E-01    .62909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28841
  Index      = 2.35487
  Normalizat = 1.13827
  Prefactor  = 1.05877
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.283     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2884        3.5399        .13792E-03   -1.5345    
   2  Index         2.3549        .81398        .91974E-02   -.55745    
   3  Normalizat    1.1383        .23788        .28675E-03   -.88533    
   4  Prefactor     1.0588        .22372        .27902E-03   -.90795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81558e-12
Minuit parameter uncertainties:
  1  3.5401
  2  0.819059
  3  0.238103
  4  0.223922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435290': 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) = 6683.28257853
delta logL = 0.00235612171946

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.288e+00  3.540e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.355e+00  8.191e-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.059e+00  2.239e-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.138e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 183.774 16.937
Photon Index (Free Index): 2.35 +/- 0.82
Photon Flux (Free Index): 3.79e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.43e-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/435290/cmap_HighResolution_310867201_311126401_4FGL_J1215.0+1656_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.32e-05', photon_flux_error='4.03e-08', dlogl='2.36e-03', energy_flux='1.28e-05', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-05 05:28:40.294869', photon_index_error2='0.82', photon_index2='2.35', ts='1.62', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.43e-05', EG='1.14', time_epoch_completed='1630844920.29', return_code='0', job_id='435290', GAL2='1.06', EG2='1.14', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.46e-08', ts2='1.63', photon_index='2.41' WHERE bin_id='276' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:28:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 435290: <4FGL_J1215.0+1656_daily_bin276> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin276> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 05:15:26 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:15:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:15:28 2021
Terminated at Sun Sep  5 05:28:41 2021
Results reported at Sun Sep  5 05:28:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin276 183.774 16.9372 310867201 311126401 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 :                                   770.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            795 sec.

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

