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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin99
RA = 183.774, Dec = 16.9372
tmin = 264988801, tmax = 265248001
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='433856', job_status='RUN', time_executed='2021-09-05 05:13:01.266987', time_epoch_executed='1630843981.27' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433856/ft1_4FGL_J1215.0+1656_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433856/ft2_4FGL_J1215.0+1656_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433856/ft1_4FGL_J1215.0+1656_daily_bin99.fits outfile=/scratch/kocevski/433856/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin99.fits ra=183.774 dec=16.9372 rad=12.0 tmin=264988801.0 tmax=265248001.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.17
user 0.97
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433856/ft2_4FGL_J1215.0+1656_daily_bin99.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/433856/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin99.fits evtable="EVENTS" outfile="/scratch/kocevski/433856/ft1_filtered_4FGL_J1215.0+1656_daily_bin99.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.42
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433856/ft1_filtered_4FGL_J1215.0+1656_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/433856/ft2_4FGL_J1215.0+1656_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/433856/ltcube_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.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/433856/ft2_4FGL_J1215.0+1656_daily_bin99.fits
.....................!
real 9.73
user 9.43
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433856/ft1_filtered_4FGL_J1215.0+1656_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/433856/ft2_4FGL_J1215.0+1656_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/433856/ltcube_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.fits outfile=/scratch/kocevski/433856/expmap_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.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/433856/ltcube_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.fits
.....................!
real 146.53
user 142.48
sys 3.66

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/433856/ft1_filtered_4FGL_J1215.0+1656_daily_bin99.fits scfile=/scratch/kocevski/433856/ft2_4FGL_J1215.0+1656_daily_bin99.fits outfile=/scratch/kocevski/433856/cmap_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433856/ft1_filtered_4FGL_J1215.0+1656_daily_bin99.fits scfile=/scratch/kocevski/433856/ft2_4FGL_J1215.0+1656_daily_bin99.fits outfile=/scratch/kocevski/433856/cmap_HighResolution_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.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.48
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2918       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9910       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20769E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1608       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7990       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .63314       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.752       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5952       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.052       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.115       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3593       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32412E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80384       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=   8938.958     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2738 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6315        6.5026        .10607E-05   -.35533E-03
   2  Prefactor     6.4530        20.697        .37487E-05    .15368E-04
   3  Prefactor     14.475        8.1215        .22720E-06   -.13459E-05
   4  Prefactor     1.2913        1.5176       -.18977E-06   -.34272E-03
   5  Prefactor     .10000E-03    22.908        .52037E-07** at limit **
   6  Prefactor     .10000E-03    4.0775       -.15801E-07** at limit **
   7  Prefactor     .10000E-03    28.712        .13312E-06** at limit **
   8  Prefactor     2.9922        2.4211       -.13462E-08   -.37738E-04
   9  Prefactor     .10000E-03    45.848        .14637E-06** at limit **
  10  Prefactor     .10000E-03    1.1073        .18468E-07** at limit **
  11  Prefactor     2.1649        2.5480        .13516E-06   -.10053E-03
  12  Prefactor     .10000E-03    8.7744       -.10477E-06** at limit **
  13  Prefactor     7.7987        2.5554        .15643E-07   -.39809E-05
  14  Prefactor     .10000E-03    10.649       -.11201E-06** at limit **
  15  Prefactor     .10000E-03    3.7806        .32566E-07** at limit **
  16  norm          .63316        .20493        .22492E-08   -.85627E-04
  17  Prefactor     70.946        67.370        .98447E-06    .39590E-05
  18  norm          3.5945        4.0162        .33281E-07   -.10625E-03
  19  Prefactor     11.053        7.9289       -.83610E-06    .83184E-05
  20  Prefactor     .10000E-03    58.826       -.25124E-06** at limit **
  21  Prefactor     40.112        29.960        .57843E-05    .17575E-03
  22  Prefactor     7.3586        5.5027        .35432E-07   -.13511E-04
  23  Prefactor     .10000E-03    4.4088       -.95453E-06** at limit **
  24  Prefactor     .10000E-03    6.1243       -.13955E-06** at limit **
  25  Normalizat    1.1094        .15024       -.23665E-06    .15236E-03
  26  Prefactor     .80377        .13634       -.31955E-06    .10696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63154
  Prefactor  = 6.45305
  Prefactor  = 14.4746
  Prefactor  = 1.29128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16492
  Prefactor  = 0.0001
  Prefactor  = 7.79874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.633157
  Prefactor  = 70.9464
  norm       = 3.59454
  Prefactor  = 11.0528
  Prefactor  = 0.0001
  Prefactor  = 40.1122
  Prefactor  = 7.35858
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.10942
  Prefactor  = 0.803767
 **********
 **   18 **HESSE 
 **********

 FCN=   8938.958     FROM HESSE     STATUS=OK           460 CALLS     3198 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6315        49.518        .16523E-02   -1.5453    
   2  Prefactor     6.4530        20.426        .15797E-03   -1.5200    
   3  Prefactor     14.475        8.1185        .10528E-03   -1.4947    
   4  Prefactor     1.2913        1.4796        .11503E-03   -1.5481    
   5  Prefactor     .10000E-03    22.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9922        2.4070        .12634E-03   -1.5362    
   9  Prefactor     .10000E-03    45.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6329        .17716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1649        2.3955        .14534E-03   -1.5414    
  12  Prefactor     .10000E-03    8.7849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7987        2.5549        .83178E-04   -1.5149    
  14  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8645        .35783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63316        .20429        .23100E-04   -1.5549    
  17  Prefactor     70.946        67.348        .47725E-04   -1.4021    
  18  norm          3.5945        4.0023        .18988E-03   -1.5329    
  19  Prefactor     11.053        7.9105        .12051E-03   -1.5043    
  20  Prefactor     .10000E-03    59.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.112        29.985        .31643E-03   -1.4440    
  22  Prefactor     7.3586        5.5038        .14785E-03   -1.5165    
  23  Prefactor     .10000E-03    20.852        .37530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1094        .17553        .23879E-03   -.89450    
  26  Prefactor     .80377        .15884        .26405E-03   -.99590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8928e-09
Minuit parameter uncertainties:
  1  17.9925
  2  20.4484
  3  8.1191
  4  1.47967
  5  2.99014e-06
  6  2.65611e-06
  7  3.94417e-05
  8  2.40712
  9  1.65855e-05
  10  1.53245e-05
  11  2.39556
  12  6.90664e-07
  13  2.55493
  14  1.29007e-06
  15  1.46609e-06
  16  0.204291
  17  67.4203
  18  4.00257
  19  7.91126
  20  0.000240496
  21  29.9961
  22  5.50415
  23  0.000626329
  24  6.30959e-07
  25  0.175621
  26  0.158928
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.165e+00  2.396e+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:  8.038e-01  1.589e-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.109e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 8.73e-06 +/- 9.66e-06

TS (Fixed Index): 1.14
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 9.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433856/likelihoodResults_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.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) = 8937.44637814
delta logL = 1.51114634815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8937.42666463
delta logL = 1.5308598584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58965       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9296       1.0000          .0000       10.000    
     3 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85302       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=   8937.427     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      248 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58954        3.5695        .84841E-02    .30778E-02
   2  Index         3.9297        2.1696        .12850        .26093E-03
   3  Normalizat    1.0271        .37116E-01    .42462E-01   -.14914E-03
   4  Prefactor     .85302        .35395E-01    .44403E-01   -.48272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.589541
  Index      = 3.92971
  Normalizat = 1.02712
  Prefactor  = 0.853023
 **********
 **   18 **HESSE 
 **********

 FCN=   8937.427     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      279 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58954        8.3182        .38351E-04   -1.5554    
   2  Index         3.9297        3.7792        .46692E-02   -.21573    
   3  Normalizat    1.0271        .18104        .24663E-03   -.92127    
   4  Prefactor     .85302        .17101        .25701E-03   -.97802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.82796e-10
Minuit parameter uncertainties:
  1  4.42933
  2  4.32128
  3  0.181149
  4  0.171117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433856': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8937.42666462
delta logL = 1.53085986744

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.895e-01  4.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.930e+00  4.321e+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:  8.530e-01  1.711e-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.027e+00  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 183.774 16.937
Photon Index (Free Index): 3.93 +/- 4.32
Photon Flux (Free Index): 9.23e-08 +/- 5.86e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/433856/cmap_HighResolution_264988801_265248001_4FGL_J1215.0+1656_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.40e-05', photon_flux_error='2.98e-08', dlogl='1.53e+00', energy_flux='8.73e-06', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-09-05 05:24:16.348349', photon_index_error2='4.32', photon_index2='3.93', ts='1.14', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.14e-08', energy_flux_error2='1.02e-05', EG='1.11', time_epoch_completed='1630844656.35', return_code='0', job_id='433856', GAL2='0.85', EG2='1.03', return_code2='102', energy_flux_error='9.66e-06', photon_flux_error2='5.86e-08', ts2='4.44', photon_index='2.41' WHERE bin_id='99' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:24:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 433856: <4FGL_J1215.0+1656_daily_bin99> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin99> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:11:05 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:11:06 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:06 2021
Terminated at Sun Sep  5 05:24:17 2021
Results reported at Sun Sep  5 05:24:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin99 183.774 16.9372 264988801 265248001 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

