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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin27
RA = 149.176, Dec = 25.2817
tmin = 246326401, tmax = 246585601
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='578051', job_status='RUN', time_executed='2021-09-01 05:59:26.543583', time_epoch_executed='1630501166.54' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578051

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578051/ft1_4FGL_J0956.7+2516_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578051/ft1_4FGL_J0956.7+2516_daily_bin27.fits outfile=/scratch/kocevski/578051/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin27.fits ra=149.176 dec=25.2817 rad=12.0 tmin=246326401.0 tmax=246585601.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.45
user 1.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits" evtable="EVENTS" scfile=/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits sctable="SC_DATA" outfile=/scratch/kocevski/578051/ltcube_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.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/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits
.....................!
real 13.20
user 12.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/578051/ltcube_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.fits outfile=/scratch/kocevski/578051/expmap_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.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/578051/ltcube_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.fits
.....................!
real 190.66
user 185.31
sys 4.85

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/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits scfile=/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits outfile=/scratch/kocevski/578051/cmap_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits scfile=/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits outfile=/scratch/kocevski/578051/cmap_HighResolution_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.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.68
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578051/Model_4FGL_J0956.7+2516_daily_bin27.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/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits.....................!
real 61.83
user 59.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits', '/scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits', expMap='/scratch/kocevski/578051/expmap_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.fits', expCube='/scratch/kocevski/578051/ltcube_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/578051/Model_4FGL_J0956.7+2516_daily_bin27.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/578051/ft1_filtered_4FGL_J0956.7+2516_daily_bin27.fits
Spacecraft file(s): /scratch/kocevski/578051/ft2_4FGL_J0956.7+2516_daily_bin27.fits
Exposure map: /scratch/kocevski/578051/expmap_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.fits
Exposure cube: /scratch/kocevski/578051/ltcube_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/578051/Model_4FGL_J0956.7+2516_daily_bin27.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) = 7278.70717692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    36.878       1.0000         .10000E-03   10000.    
     3 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9009       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13310E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7141       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .59390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4140       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=   7278.684     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2092 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.784        .17314E-04** at limit **
   2  norm          36.857        39.750       -.23500E-04    .11748E-05
   3  norm          .10000E-03    .71297       -.18302E-06** at limit **
   4  Prefactor     .10000E-03    47.204       -.62994E-05** at limit **
   5  Prefactor     .10000E-03    1.9539       -.33885E-06** at limit **
   6  Prefactor     39.510        23.987       -.22364E-05    .71706E-04
   7  Prefactor     .10000E-03    11.962        .33030E-05** at limit **
   8  Prefactor     3.8834        57.961       -.47535E-04   -.18470E-04
   9  Prefactor     .10000E-03    1.5179       -.28855E-07** at limit **
  10  Prefactor     7.2119        6.9170       -.70623E-06    .29639E-04
  11  Prefactor     .10000E-03    .84350       -.29182E-06** at limit **
  12  norm          12.371        6.9935       -.10683E-05   -.15017E-02
  13  Prefactor     .10001E-03    1.3590       -.84630E-06** at limit **
  14  Prefactor     .10000E-03    8.2302        .23886E-06** at limit **
  15  Prefactor     .10000E-03    2.4408       -.10650E-06** at limit **
  16  Prefactor     .10000E-03    28.377       -.10572E-04** at limit **
  17  Prefactor     5.2689        5.3418        .19017E-06   -.31393E-03
  18  Prefactor     2.7141        1.7873       -.25934E-06   -.17477E-03
  19  Normalizat    .59389        .15105        .49505E-05    .35433E-03
  20  Prefactor     1.4140        .15856        .13174E-05    .46383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 36.857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5095
  Prefactor  = 0.0001
  Prefactor  = 3.88337
  Prefactor  = 0.0001
  Prefactor  = 7.21191
  Prefactor  = 0.0001
  norm       = 12.3707
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2689
  Prefactor  = 2.71411
  Normalizat = 0.593894
  Prefactor  = 1.41399
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.684     FROM HESSE     STATUS=OK           293 CALLS     2385 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          36.857        39.743        .65997E-04   -1.4493    
   3  norm          .10000E-03    1.7634        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    47.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0629        .22799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.510        23.956        .63766E-04   -1.4450    
   7  Prefactor     .10000E-03    11.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8834        58.520        .20428E-03   -1.5314    
   9  Prefactor     .10000E-03    1.5277        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2119        6.9040        .14934E-03   -1.5171    
  11  Prefactor     .10000E-03    2.1195        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.371        7.0487        .56944E-03   -1.5004    
  13  Prefactor     .10001E-03    11.135        .19044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4713        .12983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2689        5.3236        .17510E-03   -1.5249    
  18  Prefactor     2.7141        1.7806        .88205E-04   -1.5378    
  19  Normalizat    .59389        .17544        .28564E-03   -1.0824    
  20  Prefactor     1.4140        .18783        .21054E-03   -.79978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24929e-09
Minuit parameter uncertainties:
  1  0.000171258
  2  39.7719
  3  1.46317e-05
  4  0.000221716
  5  8.06425e-05
  6  23.9616
  7  6.12629e-06
  8  30.1849
  9  3.07909e-06
  10  6.90478
  11  3.00849e-05
  12  7.04916
  13  0.000608721
  14  9.96145e-06
  15  9.07004e-06
  16  7.8824e-05
  17  5.32412
  18  1.7806
  19  0.175608
  20  0.187917
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  3.079e-06  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:  1.414e+00  1.879e-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:  5.939e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 4.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578051/likelihoodResults_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.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): 102
logL (Free Index) = 7278.6868357
delta logL = -0.00307892292858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7278.68375668
delta logL = 9.84673533821e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7278.684     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.223        .10324E-01** at limit **
   2  Index         2.1780        8.5744        .50000        .60299E-07
   3  Normalizat    .59389        .93386E-02    .28563E-03    .10727E-03
   4  Prefactor     1.4140        .10252E-01    .21054E-03    .15717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17798
  Normalizat = 0.593894
  Prefactor  = 1.41399
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.684     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.97        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1780        6.0405        .50000       -.59971    
   3  Normalizat    .59389        .30522E-01    .11425E-04   -1.0824    
   4  Prefactor     1.4140        .33507E-01    .42108E-04   -.79978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28075e-09
Minuit parameter uncertainties:
  1  0.000190315
  2  599.671
  3  0.030523
  4  0.0335072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578051': 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) = 7278.68375373
delta logL = 3.05283447233e-06

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.903e-04  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.178e+00  5.997e+02  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:  1.414e+00  3.351e-02  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:  5.939e-01  3.052e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.176 25.282

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/578051/cmap_HighResolution_246326401_246585601_4FGL_J0956.7+2516_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.14e-08', time_completed='2021-09-01 06:09:54.488621', job_id='578051', GAL2='1.41', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630501794.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='3.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='27' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 578051: <4FGL_J0956.7+2516_daily_bin27> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin27> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:36 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 05:55:38 2021
Terminated at Wed Sep  1 06:09:55 2021
Results reported at Wed Sep  1 06:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin27 149.176 25.2817 246326401 246585601 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 :                                   620.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

