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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin998
RA = 149.176, Dec = 25.2817
tmin = 498009601, tmax = 498268801
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='583287', job_status='RUN', time_executed='2021-09-01 06:11:47.730911', time_epoch_executed='1630501907.73' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583287/ft1_4FGL_J0956.7+2516_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583287/ft1_4FGL_J0956.7+2516_daily_bin998.fits outfile=/scratch/kocevski/583287/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin998.fits ra=149.176 dec=25.2817 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.24
user 7.73
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583287/ft1_filtered_4FGL_J0956.7+2516_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/583287/ltcube_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.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/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits
.....................!
real 11.89
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583287/ft1_filtered_4FGL_J0956.7+2516_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/583287/ltcube_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.fits outfile=/scratch/kocevski/583287/expmap_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.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/583287/ltcube_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.fits
.....................!
real 190.82
user 185.04
sys 5.15

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/583287/ft1_filtered_4FGL_J0956.7+2516_daily_bin998.fits scfile=/scratch/kocevski/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits outfile=/scratch/kocevski/583287/cmap_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583287/ft1_filtered_4FGL_J0956.7+2516_daily_bin998.fits scfile=/scratch/kocevski/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits outfile=/scratch/kocevski/583287/cmap_HighResolution_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583287/ft1_filtered_4FGL_J0956.7+2516_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/583287/ft2_4FGL_J0956.7+2516_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583287/Model_4FGL_J0956.7+2516_daily_bin998.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/583287/ft1_filtered_4FGL_J0956.7+2516_daily_bin998.fits.....................!
real 46.77
user 41.19
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.313       1.0000         .10000E-03   10000.    
     2 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.911       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2288       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8217       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32217E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10121       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64515       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2198       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=   4270.312     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     2724 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.318        28.249        .57691E-04    .30742E-04
   2  norm          .10000E-03    59.620        .18142E-02** at limit **
   3  norm          .10000E-03    4.9151        .13535E-02** at limit **
   4  Prefactor     15.871        51.984        .10041E-03   -.31702E-04
   5  Prefactor     .10000E-03    1.7069        .82814E-03** at limit **
   6  Prefactor     14.262        16.477        .10607E-03    .18371E-04
   7  Prefactor     .10000E-03    54.484        .18142E-02** at limit **
   8  Prefactor     .73676        369.66        .76990E-02    .10819E-03
   9  Prefactor     36.113        11.627        .66687E-04    .80465E-04
  10  Prefactor     10.058        11.379        .12634E-03   -.16845E-03
  11  Prefactor     1.2293        2.1236        .12262E-03    .30512E-03
  12  norm          2.8215        6.5160        .24213E-03    .81089E-04
  13  Prefactor     4.0738        4.0341        .12547E-03    .52189E-04
  14  Prefactor     .10002E-03    63.057        .14278    ** at limit **
  15  Prefactor     .10000E-03    5.7840        .30173E-03** at limit **
  16  Prefactor     .10000E-03    67.400        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.9917        .14161E-02** at limit **
  18  Prefactor     .98564E-01    8.1936        .15210E-02   -.26580E-03
  19  Normalizat    .64519        .23334        .27565E-03    .24202E-03
  20  Prefactor     1.2196        .23501        .21660E-03   -.13934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.3177
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 15.8708
  Prefactor  = 0.0001
  Prefactor  = 14.2621
  Prefactor  = 0.0001
  Prefactor  = 0.736763
  Prefactor  = 36.113
  Prefactor  = 10.0585
  Prefactor  = 1.22933
  norm       = 2.82149
  Prefactor  = 4.07377
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0985638
  Normalizat = 0.645191
  Prefactor  = 1.21958
 **********
 **   18 **HESSE 
 **********

 FCN=   4270.312     FROM HESSE     STATUS=OK           285 CALLS     3009 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.318        28.228        .23076E-05   -1.4317    
   2  norm          .10000E-03    59.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.9467        .27070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.871        51.942        .40164E-05   -1.4911    
   5  Prefactor     .10000E-03    1.7071        .16563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.262        16.476        .21214E-04   -1.4952    
   7  Prefactor     .10000E-03    54.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .73676        375.64        .30796E-03   -1.5536    
   9  Prefactor     36.113        11.625        .26675E-05   -1.4505    
  10  Prefactor     10.058        11.374        .50537E-05   -1.5074    
  11  Prefactor     1.2293        2.1228        .49049E-05   -1.5486    
  12  norm          2.8215        6.5151        .96850E-05   -1.5372    
  13  Prefactor     4.0738        4.0328        .50190E-05   -1.5304    
  14  Prefactor     .10002E-03    63.087        .14270       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7841        .60346E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9932        .28323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .98564E-01    8.2329        .60840E-04   -1.5645    
  19  Normalizat    .64519        .23236        .11026E-04   -1.0610    
  20  Prefactor     1.2196        .23517        .43321E-04   -.85731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76049e-09
Minuit parameter uncertainties:
  1  28.2358
  2  6.24678e-05
  3  0.000146772
  4  52.0904
  5  5.98234e-06
  6  16.4812
  7  5.86087e-05
  8  33.4831
  9  11.6261
  10  11.376
  11  2.12292
  12  6.51678
  13  4.03304
  14  0.00229002
  15  9.66094e-05
  16  0.000265565
  17  6.21108e-06
  18  1.80097
  19  0.232716
  20  0.235373
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  3.611e+01  1.163e+01  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.220e+00  2.354e-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:  6.452e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.75
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.09e-07 +/- 6.73e-08
Energy Flux (Fixed Index): 5.78e-05 +/- 1.86e-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) = 4270.26129192
delta logL = 0.0511984214718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4270.24882266
delta logL = 0.0636676783615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.111       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4242       1.0000          .0000       10.000    
     3 'Normalizat'    .66060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2062       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=   4270.249     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      275 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.108        14.797        .64091E-04    .72904E-04
   2  Index         2.4245        .33759        .39735E-02    .19702E-04
   3  Normalizat    .66044        .22638        .27274E-03    .89617E-04
   4  Prefactor     1.2064        .23564        .21749E-03    .15078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1077
  Index      = 2.42449
  Normalizat = 0.66044
  Prefactor  = 1.20638
 **********
 **   18 **HESSE 
 **********

 FCN=   4270.249     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.108        14.618        .25637E-05   -1.4456    
   2  Index         2.4245        .33339        .15894E-03   -.54113    
   3  Normalizat    .66044        .22651        .10910E-04   -1.0548    
   4  Prefactor     1.2064        .23576        .43498E-04   -.86135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89491e-11
Minuit parameter uncertainties:
  1  14.6194
  2  0.333726
  3  0.226835
  4  0.235968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583287': 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) = 4270.24882216
delta logL = 0.0636681801052

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  3.911e+01  1.462e+01  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.424e+00  3.337e-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:  1.206e+00  2.360e-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:  6.604e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.79
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.42 +/- 0.33
Photon Flux (Free Index): 1.98e-07 +/- 7.14e-08
Energy Flux (Free Index): 6.29e-05 +/- 2.59e-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/583287/cmap_HighResolution_498009601_498268801_4FGL_J0956.7+2516_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-07', energy_flux2='6.29e-05', photon_flux_error='6.73e-08', dlogl='6.37e-02', energy_flux='5.78e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-09-01 06:20:46.719128', photon_index_error2='0.33', photon_index2='2.42', ts='21.75', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='0.65', time_epoch_completed='1630502446.72', return_code='0', job_id='583287', GAL2='1.21', EG2='0.66', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='7.14e-08', ts2='21.79', photon_index='2.55' WHERE bin_id='998' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:20:46 PDT 2021


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

Job <4FGL_J0956.7+2516_daily_bin998> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:11:19 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:11:20 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:20 2021
Terminated at Wed Sep  1 06:20:47 2021
Results reported at Wed Sep  1 06:20:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin998 149.176 25.2817 498009601 498268801 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 :                                   518.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            568 sec.

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

