/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin269
RA = 149.176, Dec = 25.2817
tmin = 309052801, tmax = 309312001
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='579664', job_status='RUN', time_executed='2021-09-01 06:02:48.465221', time_epoch_executed='1630501368.47' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579664/ft1_4FGL_J0956.7+2516_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579664/ft1_4FGL_J0956.7+2516_daily_bin269.fits outfile=/scratch/kocevski/579664/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin269.fits ra=149.176 dec=25.2817 rad=12.0 tmin=309052801.0 tmax=309312001.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.44
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.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/579664/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin269.fits evtable="EVENTS" outfile="/scratch/kocevski/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.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.49
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/579664/ltcube_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.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/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits
.....................!
real 13.54
user 13.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/579664/ltcube_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.fits outfile=/scratch/kocevski/579664/expmap_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.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/579664/ltcube_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.fits
.....................!
real 191.08
user 185.56
sys 5.20

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/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.fits scfile=/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits outfile=/scratch/kocevski/579664/cmap_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.fits scfile=/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits outfile=/scratch/kocevski/579664/cmap_HighResolution_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.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.57
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/579664/ft2_4FGL_J0956.7+2516_daily_bin269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579664/Model_4FGL_J0956.7+2516_daily_bin269.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/579664/ft1_filtered_4FGL_J0956.7+2516_daily_bin269.fits.....................!
real 48.96
user 47.54
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .30485       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15377E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.0340       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5552       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12879E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96884       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97311       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91430       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=   5364.926     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     2694 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.637        .36285E-03** at limit **
   2  norm          .19128        25.052        .11152        .11321E-03
   3  norm          1.7767        1.4945        .80278E-04   -.17971E-03
   4  Prefactor     14.779        42.026        .10447E-03    .17411E-06
   5  Prefactor     .10000E-03    5.6573        .18594E-02** at limit **
   6  Prefactor     .10000E-03    8.9836        .18142E-02** at limit **
   7  Prefactor     .10002E-03    515.94        .36285E-03** at limit **
   8  Prefactor     42.802        42.828        .61254E-04    .16704E-04
   9  Prefactor     14.412        6.3975        .10553E-03    .87149E-04
  10  Prefactor     6.5357        6.2622        .15696E-03   -.44254E-04
  11  Prefactor     .10000E-03    .53157        .51904E-03** at limit **
  12  norm          7.0312        5.6362        .15103E-03    .41250E-04
  13  Prefactor     6.5489        3.8550        .10499E-03   -.55875E-03
  14  Prefactor     52.482        46.016        .55335E-04    .26667E-04
  15  Prefactor     .10000E-03    18.585        .21993E-02** at limit **
  16  Prefactor     26.199        30.982        .39149E-03    .52445E-04
  17  Prefactor     1.7526        9.0303        .31642E-03    .39091E-04
  18  Prefactor     .96840        2.2872        .15839E-03    .23831E-03
  19  Normalizat    .97324        .20229        .22601E-03    .25503E-04
  20  Prefactor     .91440        .20623        .24575E-03   -.23501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.191285
  norm       = 1.77673
  Prefactor  = 14.7785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 42.8017
  Prefactor  = 14.4121
  Prefactor  = 6.53572
  Prefactor  = 0.0001
  norm       = 7.03116
  Prefactor  = 6.54892
  Prefactor  = 52.4819
  Prefactor  = 0.000100001
  Prefactor  = 26.1991
  Prefactor  = 1.75264
  Prefactor  = 0.968399
  Normalizat = 0.973236
  Prefactor  = 0.914396
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.926     FROM HESSE     STATUS=OK           281 CALLS     2975 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.638        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .19128        24.329        .11415       -1.5621    
   3  norm          1.7767        1.4944        .32111E-05   -1.5441    
   4  Prefactor     14.779        42.026        .20894E-04   -1.4939    
   5  Prefactor     .10000E-03    5.6800        .37188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    515.94        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.802        42.824        .24502E-05   -1.4399    
   9  Prefactor     14.412        6.3973        .42214E-05   -1.4949    
  10  Prefactor     6.5357        6.2622        .62785E-05   -1.5197    
  11  Prefactor     .10000E-03    .53159        .10381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.0312        5.6362        .30206E-04   -1.5178    
  13  Prefactor     6.5489        3.8504        .41995E-05   -1.5196    
  14  Prefactor     52.482        46.013        .11067E-04   -1.4258    
  15  Prefactor     .10000E-03    18.812        .43987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.199        30.981        .15660E-04   -1.4684    
  17  Prefactor     1.7526        9.0119        .12657E-04   -1.5443    
  18  Prefactor     .96840        2.2857        .63354E-05   -1.5511    
  19  Normalizat    .97324        .20243        .90403E-05   -.93933    
  20  Prefactor     .91440        .20640        .98300E-05   -.95640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34477e-10
Minuit parameter uncertainties:
  1  1.01401e-05
  2  4.31518
  3  1.49447
  4  42.11
  5  2.87887e-07
  6  2.14873e-06
  7  0.00663634
  8  42.8552
  9  6.39765
  10  6.26279
  11  4.2109e-07
  12  5.63659
  13  3.85059
  14  46.0443
  15  0.000244578
  16  31
  17  7.95014
  18  2.28586
  19  0.202591
  20  0.206582
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.441e+01  6.398e+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.144e-01  2.066e-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:  9.732e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.49
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.35e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.02e-05

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) = 5363.58699127
delta logL = 1.33937230484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5363.53969045
delta logL = 1.3866731188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.857       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9138       1.0000          .0000       10.000    
     3 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88955       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=   5363.540     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.859        8.0032        .24388E-02   -.11891E-03
   2  Index         1.9142        .32250        .13835       -.41382E-04
   3  Normalizat    1.0100        .16438        .46291E-01    .53445E-05
   4  Prefactor     .88950        .17378        .44872E-01    .16168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8593
  Index      = 1.91421
  Normalizat = 1.00998
  Prefactor  = 0.889499
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.859        8.0555        .48776E-03   -1.4887    
   2  Index         1.9142        .34754        .57102E-02   -.66513    
   3  Normalizat    1.0100        .19204        .22242E-03   -.92697    
   4  Prefactor     .88950        .20280        .24867E-03   -.96509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84876e-12
Minuit parameter uncertainties:
  1  8.056
  2  0.347991
  3  0.192173
  4  0.202975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579664': 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) = 5363.53968951
delta logL = 1.3866740566

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.686e+01  8.056e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.914e+00  3.480e-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:  8.895e-01  2.030e-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.010e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.29
Ra Dec: 149.176 25.282
Photon Index (Free Index): 1.91 +/- 0.35
Photon Flux (Free Index): 5.40e-08 +/- 3.13e-08
Energy Flux (Free Index): 4.66e-05 +/- 3.53e-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/579664/cmap_HighResolution_309052801_309312001_4FGL_J0956.7+2516_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.35e-08', energy_flux2='4.66e-05', photon_flux_error='3.70e-08', dlogl='1.39e+00', energy_flux='2.30e-05', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-01 06:12:00.088884', photon_index_error2='0.35', photon_index2='1.91', ts='13.49', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.53e-05', EG='0.97', time_epoch_completed='1630501920.09', return_code='0', job_id='579664', GAL2='0.89', EG2='1.01', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.13e-08', ts2='16.29', photon_index='2.55' WHERE bin_id='269' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:12:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 579664: <4FGL_J0956.7+2516_daily_bin269> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin269> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 06:00:55 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:00:56 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:00:56 2021
Terminated at Wed Sep  1 06:12:00 2021
Results reported at Wed Sep  1 06:12:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin269 149.176 25.2817 309052801 309312001 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            665 sec.

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

