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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1542
RA = 149.176, Dec = 25.2817
tmin = 639014401, tmax = 639273601
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='586652', job_status='RUN', time_executed='2021-09-01 06:20:46.491155', time_epoch_executed='1630502446.49' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586652/ft1_4FGL_J0956.7+2516_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586652/ft2_4FGL_J0956.7+2516_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586652/ft1_4FGL_J0956.7+2516_daily_bin1542.fits outfile=/scratch/kocevski/586652/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1542.fits ra=149.176 dec=25.2817 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.30
user 5.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586652/ft1_filtered_4FGL_J0956.7+2516_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/586652/ft2_4FGL_J0956.7+2516_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/586652/ltcube_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.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/586652/ft2_4FGL_J0956.7+2516_daily_bin1542.fits
.....................!
real 11.62
user 11.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586652/ft1_filtered_4FGL_J0956.7+2516_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/586652/ft2_4FGL_J0956.7+2516_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/586652/ltcube_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.fits outfile=/scratch/kocevski/586652/expmap_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.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/586652/ltcube_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.fits
.....................!
real 190.99
user 186.36
sys 4.18

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/586652/ft1_filtered_4FGL_J0956.7+2516_daily_bin1542.fits scfile=/scratch/kocevski/586652/ft2_4FGL_J0956.7+2516_daily_bin1542.fits outfile=/scratch/kocevski/586652/cmap_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586652/ft1_filtered_4FGL_J0956.7+2516_daily_bin1542.fits scfile=/scratch/kocevski/586652/ft2_4FGL_J0956.7+2516_daily_bin1542.fits outfile=/scratch/kocevski/586652/cmap_HighResolution_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.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.63
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.551       1.0000         .10000E-03   10000.    
     2 'norm      '    46.726       1.0000         .10000E-03   10000.    
     3 'norm      '    .33383       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.552       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.176       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.644       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3051       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .60288       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=   5600.322     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2039 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.552        19.783       -.76405E-07   -.23377E-04
   2  norm          46.641        46.070       -.25185E-06   -.40559E-04
   3  norm          .33395        .81184        .51637E-06    .84312E-03
   4  Prefactor     57.560        56.639       -.19801E-06   -.97318E-05
   5  Prefactor     1.6462        2.6468        .22490E-06   -.50646E-04
   6  Prefactor     .10000E-03    16.710        .19400E-06** at limit **
   7  Prefactor     22.166        46.138       -.26354E-06   -.47327E-05
   8  Prefactor     .10000E-03    24.600        .39333E-06** at limit **
   9  Prefactor     8.4957        6.6206        .17732E-06   -.95607E-04
  10  Prefactor     9.5281        7.9112        .11809E-06   -.47282E-04
  11  Prefactor     .10000E-03    .95194        .42667E-06** at limit **
  12  norm          .10000E-03    2.9041        .16239E-06** at limit **
  13  Prefactor     .10000E-03    3.5276        .55698E-06** at limit **
  14  Prefactor     46.628        40.284       -.96231E-07   -.92728E-05
  15  Prefactor     23.489        7.1392        .73194E-07   -.16062E-03
  16  Prefactor     .10000E-03    17.949        .17057E-06** at limit **
  17  Prefactor     23.649        10.101        .17819E-06   -.47647E-04
  18  Prefactor     2.3052        2.0419        .46638E-07   -.19131E-04
  19  Normalizat    1.2284        .19480       -.27271E-05   -.11384E-04
  20  Prefactor     .60333        .19214        .30544E-05   -.15536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5522
  norm       = 46.6413
  norm       = 0.33395
  Prefactor  = 57.5596
  Prefactor  = 1.64622
  Prefactor  = 0.0001
  Prefactor  = 22.1659
  Prefactor  = 0.0001
  Prefactor  = 8.49566
  Prefactor  = 9.52807
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.628
  Prefactor  = 23.4885
  Prefactor  = 0.0001
  Prefactor  = 23.649
  Prefactor  = 2.30523
  Normalizat = 1.22841
  Prefactor  = 0.603331
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.322     FROM HESSE     STATUS=OK           301 CALLS     2340 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.552        19.781        .86280E-04   -1.4779    
   2  norm          46.641        46.157        .29329E-03   -1.4341    
   3  norm          .33395        .78451        .11690E-02   -1.5592    
   4  Prefactor     57.560        56.623        .52881E-04   -1.4189    
   5  Prefactor     1.6462        2.6025        .14660E-03   -1.5451    
   6  Prefactor     .10000E-03    16.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.166        46.148        .85057E-04   -1.4766    
   8  Prefactor     .10000E-03    24.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4957        6.6142        .13755E-03   -1.5125    
  10  Prefactor     9.5281        7.9100        .12984E-03   -1.5091    
  11  Prefactor     .10000E-03    1.4103        .13810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9135        .12455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6140        .27339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.628        40.291        .58711E-04   -1.4341    
  15  Prefactor     23.489        7.1153        .82652E-04   -1.4738    
  16  Prefactor     .10000E-03    17.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.649        10.084        .82377E-04   -1.4735    
  18  Prefactor     2.3052        2.0396        .95417E-04   -1.5404    
  19  Normalizat    1.2284        .19986        .21022E-03   -.85729    
  20  Prefactor     .60333        .19797        .29478E-03   -1.0745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51282e-10
Minuit parameter uncertainties:
  1  19.7866
  2  46.1921
  3  0.784534
  4  56.6757
  5  2.60271
  6  3.23748e-06
  7  46.222
  8  1.43604e-05
  9  6.61477
  10  7.91087
  11  1.75819e-05
  12  1.10529e-06
  13  2.42201e-06
  14  40.315
  15  7.11554
  16  1.5067e-05
  17  10.0844
  18  2.03962
  19  0.199982
  20  0.198202
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  8.496e+00  6.615e+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:  6.033e-01  1.982e-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.228e+00  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.06e-05

TS (Fixed Index): 2.62
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586652/likelihoodResults_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.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) = 5600.00850771
delta logL = 0.313675964135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5600.00073608
delta logL = 0.321447589547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2486       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1218       1.0000          .0000       10.000    
     3 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62197       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=   5600.001     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      290 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2490        6.5009        .11493E-03   -.21484E-03
   2  Index         3.1219        .81342        .63065E-02   -.36568E-04
   3  Normalizat    1.1986        .19468        .21237E-03    .24396E-03
   4  Prefactor     .62196        .19353        .29063E-03    .17787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.24904
  Index      = 3.12191
  Normalizat = 1.19856
  Prefactor  = 0.621965
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.001     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2490        6.0023        .45974E-05   -1.5208    
   2  Index         3.1219        .75073        .25226E-03   -.38506    
   3  Normalizat    1.1986        .19475        .42475E-04   -.86647    
   4  Prefactor     .62196        .19354        .11625E-04   -1.0667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07271e-10
Minuit parameter uncertainties:
  1  6.00288
  2  0.75405
  3  0.194869
  4  0.193744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586652': 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) = 5600.000736
delta logL = 0.321447676086

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  6.249e+00  6.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  3.122e+00  7.541e-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:  6.220e-01  1.937e-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.199e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 149.176 25.282
Photon Index (Free Index): 3.12 +/- 0.75
Photon Flux (Free Index): 7.28e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.38e-05 +/- 9.06e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/586652/cmap_HighResolution_639014401_639273601_4FGL_J0956.7+2516_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='1.38e-05', photon_flux_error='3.83e-08', dlogl='3.21e-01', energy_flux='1.36e-05', photon_flux2='7.28e-08', job_status='DONE', time_completed='2021-09-01 06:32:58.299905', photon_index_error2='0.75', photon_index2='3.12', ts='2.62', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='9.06e-06', EG='1.23', time_epoch_completed='1630503178.3', return_code='0', job_id='586652', GAL2='0.62', EG2='1.20', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.18e-08', ts2='3.28', photon_index='2.55' WHERE bin_id='1542' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:32:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 586652: <4FGL_J0956.7+2516_daily_bin1542> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin1542> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 06:20:28 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:20:30 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:20:30 2021
Terminated at Wed Sep  1 06:32:58 2021
Results reported at Wed Sep  1 06:32:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1542 149.176 25.2817 639014401 639273601 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 :                                   583.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

