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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1012
RA = 149.176, Dec = 25.2817
tmin = 501638401, tmax = 501897601
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='583310', job_status='RUN', time_executed='2021-09-01 06:14:43.343340', time_epoch_executed='1630502083.34' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583310/ft1_4FGL_J0956.7+2516_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583310/ft1_4FGL_J0956.7+2516_daily_bin1012.fits outfile=/scratch/kocevski/583310/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1012.fits ra=149.176 dec=25.2817 rad=12.0 tmin=501638401.0 tmax=501897601.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.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.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/583310/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/583310/ltcube_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.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/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits
.....................!
real 12.03
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/583310/ltcube_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.fits outfile=/scratch/kocevski/583310/expmap_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.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/583310/ltcube_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.fits
.....................!
real 192.82
user 187.60
sys 4.75

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J0956.7+2516 @ 149.176 25.2817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits scfile=/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits outfile=/scratch/kocevski/583310/cmap_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.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=149.176 yref=25.2817 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits scfile=/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits outfile=/scratch/kocevski/583310/cmap_HighResolution_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.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=149.176 yref=25.2817 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583310/Model_4FGL_J0956.7+2516_daily_bin1012.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/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits.....................!
real 54.44
user 53.08
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits', '/scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits', expMap='/scratch/kocevski/583310/expmap_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.fits', expCube='/scratch/kocevski/583310/ltcube_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/583310/Model_4FGL_J0956.7+2516_daily_bin1012.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0956.7+2516'

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.112e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/583310/ft1_filtered_4FGL_J0956.7+2516_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/583310/ft2_4FGL_J0956.7+2516_daily_bin1012.fits
Exposure map: /scratch/kocevski/583310/expmap_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.fits
Exposure cube: /scratch/kocevski/583310/ltcube_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/583310/Model_4FGL_J0956.7+2516_daily_bin1012.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) = 6275.34452877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13086E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    100.03       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14538E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.797       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6275.337     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2432 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    22.952       -.18834E-05** at limit **
   2  norm          100.03        49.186        .18917E-05    .15744E-04
   3  norm          .10000E-03    .71468       -.28733E-07** at limit **
   4  Prefactor     51.565        56.397        .13623E-05   -.84768E-05
   5  Prefactor     .10040E-03    1.6118        .10400E-05** at limit **
   6  Prefactor     3.2806        37.605       -.19098E-04   -.70084E-04
   7  Prefactor     .10000E-03    40.260       -.26886E-04** at limit **
   8  Prefactor     .10000E-03    9.2920        .16702E-06** at limit **
   9  Prefactor     9.5341        6.1441        .91757E-06   -.68386E-04
  10  Prefactor     .10000E-03    5.4386        .10711E-06** at limit **
  11  Prefactor     .10000E-03    1.0856        .16289E-06** at limit **
  12  norm          14.065        7.5653        .11234E-05   -.38733E-04
  13  Prefactor     .10000E-03    2.2026       -.15314E-07** at limit **
  14  Prefactor     .10000E-03    14.046       -.19925E-06** at limit **
  15  Prefactor     1.7905        3.6315       -.31115E-06   -.65445E-03
  16  Prefactor     .10000E-03    49.899        .14454E-04** at limit **
  17  Prefactor     12.798        7.7679        .27419E-05   -.78307E-04
  18  Prefactor     .10000E-03    .67236       -.41073E-07** at limit **
  19  Normalizat    1.1264        .17130       -.91712E-06   -.93107E-04
  20  Prefactor     .95098        .17172        .17100E-06   -.11355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100395
  norm       = 100.03
  norm       = 0.0001
  Prefactor  = 51.5645
  Prefactor  = 0.000100405
  Prefactor  = 3.28055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.53408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79048
  Prefactor  = 0.0001
  Prefactor  = 12.7978
  Prefactor  = 0.0001
  Normalizat = 1.12644
  Prefactor  = 0.95098
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.337     FROM HESSE     STATUS=OK           299 CALLS     2731 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    182.34        .71627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          100.03        49.069        .40197E-04   -1.3704    
   3  norm          .10000E-03    1.5873        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.565        56.345        .55852E-04   -1.4271    
   5  Prefactor     .10040E-03    35.465        .18910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2806        38.143        .22422E-03   -1.5346    
   7  Prefactor     .10000E-03    40.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5341        6.1365        .12979E-03   -1.5090    
  10  Prefactor     .10000E-03    5.4664        .18038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6602        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.065        7.5574        .10681E-03   -1.4958    
  13  Prefactor     .10000E-03    2.2280        .11442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7905        3.6100        .20659E-03   -1.5440    
  16  Prefactor     .10000E-03    49.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.798        7.7425        .11197E-03   -1.4992    
  18  Prefactor     .10000E-03    .67828        .63399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1264        .19290        .22675E-03   -.88907    
  20  Prefactor     .95098        .19682        .25556E-03   -.94382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30735e-08
Minuit parameter uncertainties:
  1  0.0170148
  2  49.089
  3  9.54512e-06
  4  56.4036
  5  0.00758101
  6  22.3901
  7  2.51035e-05
  8  2.47277e-06
  9  6.13688
  10  9.13229e-06
  11  2.18483e-05
  12  7.55791
  13  8.31528e-06
  14  7.24106e-06
  15  3.61042
  16  1.12415e-07
  17  7.74315
  18  6.04299e-06
  19  0.193016
  20  0.196964
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  9.534e+00  6.137e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.510e-01  1.970e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.126e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 9.81e-06

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) = 6275.30783506
delta logL = 0.0287718536974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.29964005
delta logL = 0.0369668632529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7459       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7303       1.0000          .0000       10.000    
     3 'Normalizat'    1.1166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6275.300     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7502        125.75        .33885E-02    .16928E-03
   2  Index         2.7313        6.3030        .16175        .82989E-04
   3  Normalizat    1.1166        .91605E-01    .37363E-01    .94715E-06
   4  Prefactor     .95773        .77369E-01    .45736E-01    .82195E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.75024
  Index      = 2.73128
  Normalizat = 1.11656
  Prefactor  = 0.957726
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.300     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7502        6.7875        .13554E-03   -1.5116    
   2  Index         2.7313        .72119        .80631E-02   -.47096    
   3  Normalizat    1.1166        .19127        .22758E-03   -.89222    
   4  Prefactor     .95773        .19699        .25477E-03   -.94152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48277e-12
Minuit parameter uncertainties:
  1  6.78807
  2  0.724372
  3  0.191394
  4  0.197133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583310': 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) = 6275.29963724
delta logL = 0.0369696765338

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  8.750e+00  6.788e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.731e+00  7.244e-01  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.577e-01  1.971e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.117e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.73 +/- 0.72
Photon Flux (Free Index): 6.27e-08 +/- 4.57e-08
Energy Flux (Free Index): 1.47e-05 +/- 9.35e-06

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/583310/cmap_HighResolution_501638401_501897601_4FGL_J0956.7+2516_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='1.47e-05', photon_flux_error='3.55e-08', dlogl='3.70e-02', energy_flux='1.52e-05', photon_flux2='6.27e-08', job_status='DONE', time_completed='2021-09-01 06:24:21.465581', photon_index_error2='0.72', photon_index2='2.73', ts='4.96', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='9.35e-06', EG='1.13', time_epoch_completed='1630502661.47', return_code='0', job_id='583310', GAL2='0.96', EG2='1.12', return_code2='0', energy_flux_error='9.81e-06', photon_flux_error2='4.57e-08', ts2='5.03', photon_index='2.55' WHERE bin_id='1012' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:24:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 583310: <4FGL_J0956.7+2516_daily_bin1012> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin1012> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:11:20 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:11:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:11:22 2021
Terminated at Wed Sep  1 06:24:22 2021
Results reported at Wed Sep  1 06:24:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1012 149.176 25.2817 501638401 501897601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0956.7+2516 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

