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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin6
RA = 149.176, Dec = 25.2817
tmin = 240883201, tmax = 241142401
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='578013', job_status='RUN', time_executed='2021-09-01 05:56:57.534895', time_epoch_executed='1630501017.53' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578013/ft1_4FGL_J0956.7+2516_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578013/ft1_4FGL_J0956.7+2516_daily_bin6.fits outfile=/scratch/kocevski/578013/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin6.fits ra=149.176 dec=25.2817 rad=12.0 tmin=240883201.0 tmax=241142401.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.63
user 1.32
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578013/ft1_filtered_4FGL_J0956.7+2516_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/578013/ltcube_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.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/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits
.....................!
real 13.01
user 12.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578013/ft1_filtered_4FGL_J0956.7+2516_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/578013/ltcube_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.fits outfile=/scratch/kocevski/578013/expmap_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.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/578013/ltcube_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.fits
.....................!
real 194.65
user 188.95
sys 4.89

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/578013/ft1_filtered_4FGL_J0956.7+2516_daily_bin6.fits scfile=/scratch/kocevski/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits outfile=/scratch/kocevski/578013/cmap_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578013/ft1_filtered_4FGL_J0956.7+2516_daily_bin6.fits scfile=/scratch/kocevski/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits outfile=/scratch/kocevski/578013/cmap_HighResolution_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578013/ft1_filtered_4FGL_J0956.7+2516_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/578013/ft2_4FGL_J0956.7+2516_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578013/Model_4FGL_J0956.7+2516_daily_bin6.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/578013/ft1_filtered_4FGL_J0956.7+2516_daily_bin6.fits.....................!
real 53.06
user 51.24
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10522E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.259       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.030       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.935       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22841       1.0000         .10000E-03   10000.    
    12 'norm      '    18.733       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12182E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.771       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5635       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .74231       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3833       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94485       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=   5748.288     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2205 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16120        18.868        .11867        .11315E-03
   2  norm          .10000E-03    15.130        .90712E-02** at limit **
   3  norm          .10000E-03    .64664        .90712E-02** at limit **
   4  Prefactor     56.255        42.828        .13370E-02   -.27124E-05
   5  Prefactor     5.7258        4.1537        .41957E-02    .15318E-03
   6  Prefactor     41.035        36.653        .15645E-02    .75704E-04
   7  Prefactor     .10000E-03    16.753        .90712E-02** at limit **
   8  Prefactor     67.940        42.849        .12174E-02    .20563E-04
   9  Prefactor     5.0742        5.5463        .44628E-02    .22788E-02
  10  Prefactor     .10000E-03    5.0854        .90712E-02** at limit **
  11  Prefactor     .22428        1.4059        .49431E-01    .63178E-03
  12  norm          18.734        8.9500        .23134E-02    .70972E-04
  13  Prefactor     .10000E-03    2.1037        .62662E-01** at limit **
  14  Prefactor     .10000E-03    214.23        .90712E-02** at limit **
  15  Prefactor     .10000E-03    3.8391        .90712E-02** at limit **
  16  Prefactor     62.774        50.349        .12662E-02    .37620E-05
  17  Prefactor     1.5617        5.9729        .85054E-02    .89623E-03
  18  Prefactor     .74427        2.3926        .12223E-01    .12662E-02
  19  Normalizat    1.3834        .20118        .53101E-01   -.61224E-05
  20  Prefactor     .94469        .19431        .45574E-01    .75859E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.161202
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 56.2548
  Prefactor  = 5.7258
  Prefactor  = 41.0346
  Prefactor  = 0.0001
  Prefactor  = 67.9401
  Prefactor  = 5.07415
  Prefactor  = 0.0001
  Prefactor  = 0.224279
  norm       = 18.7343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.7737
  Prefactor  = 1.56171
  Prefactor  = 0.744267
  Normalizat = 1.38336
  Prefactor  = 0.944693
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.288     FROM HESSE     STATUS=OK           305 CALLS     2510 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16120        21.646        .10588       -1.5628    
   2  norm          .10000E-03    15.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .65059        .59521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.255        42.827        .53482E-04   -1.4206    
   5  Prefactor     5.7258        4.1551        .12526E-03   -1.5229    
   6  Prefactor     41.035        36.671        .31290E-03   -1.4426    
   7  Prefactor     .10000E-03    16.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     67.940        42.943        .24349E-03   -1.4058    
   9  Prefactor     5.0742        5.5372        .89255E-03   -1.5257    
  10  Prefactor     .10000E-03    5.1419        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22428        5.9544        .16929E-02   -1.5613    
  12  norm          18.734        8.9535        .46268E-03   -1.4842    
  13  Prefactor     .10000E-03    15.119        .21028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    218.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8882        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     62.774        50.374        .50648E-04   -1.4122    
  17  Prefactor     1.5617        5.8636        .33532E-03   -1.5458    
  18  Prefactor     .74427        2.3443        .19349E-03   -1.5535    
  19  Normalizat    1.3834        .23241        .23479E-03   -.81111    
  20  Prefactor     .94469        .22513        .28457E-03   -.94596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55613e-08
Minuit parameter uncertainties:
  1  3.73623
  2  8.66416e-06
  3  7.5562e-08
  4  42.8504
  5  4.15531
  6  36.6915
  7  9.13912e-06
  8  42.9625
  9  5.53776
  10  6.07935e-06
  11  2.31098
  12  8.95416
  13  5.27078e-06
  14  6.61107e-05
  15  1.07927e-06
  16  50.4086
  17  5.86571
  18  2.34458
  19  0.232586
  20  0.225358
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.074e+00  5.538e+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.447e-01  2.254e-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.383e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 8.11e-06 +/- 8.86e-06

TS (Fixed Index): 1.90
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578013/likelihoodResults_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.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) = 5748.1073091
delta logL = 0.181094093021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5748.10244779
delta logL = 0.185955402791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6009       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0612       1.0000          .0000       10.000    
     3 'Normalizat'    1.3947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93725       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=   5748.102     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6009        9.6941        .42437E-02    .27174E-03
   2  Index         2.0613        .93486        .25448       -.20649E-04
   3  Normalizat    1.3947        .18929        .52925E-01    .20444E-05
   4  Prefactor     .93725        .19468        .45478E-01    .13404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60093
  Index      = 2.06135
  Normalizat = 1.39466
  Prefactor  = 0.937254
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.102     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6009        6.1650        .16975E-03   -1.5235    
   2  Index         2.0613        .74408        .10709E-01   -.62825    
   3  Normalizat    1.3947        .21819        .23400E-03   -.80783    
   4  Prefactor     .93725        .22413        .28553E-03   -.94851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44698e-10
Minuit parameter uncertainties:
  1  6.1657
  2  0.748339
  3  0.218331
  4  0.224355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578013': 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) = 5748.10244778
delta logL = 0.18595541311

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.601e+00  6.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.061e+00  7.483e-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.373e-01  2.244e-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.395e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.06 +/- 0.75
Photon Flux (Free Index): 2.00e-08 +/- 2.72e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.67e-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/578013/cmap_HighResolution_240883201_241142401_4FGL_J0956.7+2516_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.20e-05', photon_flux_error='3.20e-08', dlogl='1.86e-01', energy_flux='8.11e-06', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-09-01 06:06:46.406261', photon_index_error2='0.75', photon_index2='2.06', ts='1.90', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.67e-05', EG='1.38', time_epoch_completed='1630501606.41', return_code='0', job_id='578013', GAL2='0.94', EG2='1.39', return_code2='0', energy_flux_error='8.86e-06', photon_flux_error2='2.72e-08', ts2='2.27', photon_index='2.55' WHERE bin_id='6' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 578013: <4FGL_J0956.7+2516_daily_bin6> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin6> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:34 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:35 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:35 2021
Terminated at Wed Sep  1 06:06:47 2021
Results reported at Wed Sep  1 06:06:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin6 149.176 25.2817 240883201 241142401 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 :                                   585.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            673 sec.

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

