/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 52 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 = 7574
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin288
RA = 149.176, Dec = 25.2817
tmin = 313977601, tmax = 314236801
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='579695', job_status='RUN', time_executed='2021-09-01 06:02:50.861709', time_epoch_executed='1630501370.86' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579695/ft1_4FGL_J0956.7+2516_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579695/ft1_4FGL_J0956.7+2516_daily_bin288.fits outfile=/scratch/kocevski/579695/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin288.fits ra=149.176 dec=25.2817 rad=12.0 tmin=313977601.0 tmax=314236801.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.58
user 3.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579695/ft1_filtered_4FGL_J0956.7+2516_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/579695/ltcube_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.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/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits
.....................!
real 13.12
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579695/ft1_filtered_4FGL_J0956.7+2516_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/579695/ltcube_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.fits outfile=/scratch/kocevski/579695/expmap_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.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/579695/ltcube_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.fits
.....................!
real 191.65
user 185.98
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/579695/ft1_filtered_4FGL_J0956.7+2516_daily_bin288.fits scfile=/scratch/kocevski/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits outfile=/scratch/kocevski/579695/cmap_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579695/ft1_filtered_4FGL_J0956.7+2516_daily_bin288.fits scfile=/scratch/kocevski/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits outfile=/scratch/kocevski/579695/cmap_HighResolution_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579695/ft1_filtered_4FGL_J0956.7+2516_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/579695/ft2_4FGL_J0956.7+2516_daily_bin288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579695/Model_4FGL_J0956.7+2516_daily_bin288.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/579695/ft1_filtered_4FGL_J0956.7+2516_daily_bin288.fits.....................!
real 45.92
user 44.46
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    30.153       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3084       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5127       1.0000         .10000E-03   10000.    
    12 'norm      '    17.837       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61342       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1905       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=   5158.492     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2059 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.500       -.60761E-06** at limit **
   2  norm          30.141        37.094       -.12429E-04    .22969E-05
   3  norm          2.3084        1.5570       -.99284E-07    .75042E-04
   4  Prefactor     24.667        46.479        .26427E-05    .67068E-05
   5  Prefactor     .10000E-03    1.9102       -.16434E-06** at limit **
   6  Prefactor     13.238        17.137       -.31746E-06   -.25333E-05
   7  Prefactor     .10000E-03    22.147        .46113E-05** at limit **
   8  Prefactor     11.346        41.352       -.25486E-04   -.65735E-05
   9  Prefactor     6.4166        6.0006        .28796E-05   -.17881E-03
  10  Prefactor     .10000E-03    2.3721       -.10472E-06** at limit **
  11  Prefactor     1.5128        2.0879       -.69486E-06   -.79546E-03
  12  norm          17.838        8.8779       -.50558E-06    .74900E-05
  13  Prefactor     .10000E-03    .91777        .11947E-07** at limit **
  14  Prefactor     .10000E-03    34.448        .15462E-05** at limit **
  15  Prefactor     .10000E-03    1.3432       -.12688E-08** at limit **
  16  Prefactor     .10000E-03    22.491       -.55620E-05** at limit **
  17  Prefactor     2.0679        6.6784       -.27301E-05   -.62232E-03
  18  Prefactor     .10000E-03    1.0224        .31643E-07** at limit **
  19  Normalizat    .61340        .16759        .24990E-05    .59615E-04
  20  Prefactor     1.1906        .17629        .77157E-06    .10605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 30.1413
  norm       = 2.3084
  Prefactor  = 24.6667
  Prefactor  = 0.0001
  Prefactor  = 13.2377
  Prefactor  = 0.0001
  Prefactor  = 11.3457
  Prefactor  = 6.41662
  Prefactor  = 0.0001
  Prefactor  = 1.51278
  norm       = 17.8376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06793
  Prefactor  = 0.0001
  Normalizat = 0.613404
  Prefactor  = 1.19059
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.492     FROM HESSE     STATUS=OK           293 CALLS     2352 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          30.141        37.025        .72964E-04   -1.4609    
   3  norm          2.3084        1.5558        .71344E-04   -1.5404    
   4  Prefactor     24.667        46.462        .80657E-04   -1.4714    
   5  Prefactor     .10000E-03    5.9179        .19168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.238        17.133        .11007E-03   -1.4980    
   7  Prefactor     .10000E-03    22.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.346        41.544        .11887E-03   -1.5034    
   9  Prefactor     6.4166        5.9409        .15845E-03   -1.5201    
  10  Prefactor     .10000E-03    2.3764        .10803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5128        2.0790        .11560E-03   -1.5462    
  12  norm          17.838        8.8735        .94832E-04   -1.4863    
  13  Prefactor     .10000E-03    .92358        .67181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3578        .81277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0679        6.8032        .28649E-03   -1.5420    
  18  Prefactor     .10000E-03    1.0457        .14158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61340        .19007        .25294E-03   -1.0742    
  20  Prefactor     1.1906        .20163        .20682E-03   -.86621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23621e-09
Minuit parameter uncertainties:
  1  3.27348e-05
  2  37.0533
  3  1.55587
  4  46.53
  5  7.93459e-05
  6  17.1397
  7  4.15861e-06
  8  41.65
  9  5.94149
  10  4.22015e-06
  11  2.07907
  12  8.87418
  13  2.91643e-06
  14  2.91616e-05
  15  3.8161e-06
  16  2.56766e-05
  17  6.80573
  18  1.1705e-06
  19  0.190277
  20  0.201756
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  6.417e+00  5.941e+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:  1.191e+00  2.018e-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.134e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 9.50e-06

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

Saving results to:
/scratch/kocevski/579695/likelihoodResults_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.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) = 5158.39489442
delta logL = 0.0975889174942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5158.39113985
delta logL = 0.101343483101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1165       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9622       1.0000          .0000       10.000    
     3 'Normalizat'    .59761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2021       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=   5158.391     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1192        112.11        .44436E-02    .30266E-03
   2  Index         2.9629        6.4114        .16613        .75008E-04
   3  Normalizat    .59728        .63947E-01    .40906E-01    .19343E-04
   4  Prefactor     1.2023        .62488E-01    .34581E-01   -.58208E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11917
  Index      = 2.96291
  Normalizat = 0.597282
  Prefactor  = 1.20227
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.391     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1192        6.6647        .12924E-03   -1.5255    
   2  Index         2.9629        1.0838        .84271E-02   -.41963    
   3  Normalizat    .59728        .18509        .25602E-03   -1.0810    
   4  Prefactor     1.2023        .20187        .20594E-03   -.86262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74345e-12
Minuit parameter uncertainties:
  1  6.66562
  2  1.09421
  3  0.185287
  4  0.202002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579695': 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) = 5158.3911369
delta logL = 0.101346437254

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.119e+00  6.666e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.963e+00  1.094e+00  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.202e+00  2.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  5.973e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.96 +/- 1.09
Photon Flux (Free Index): 4.87e-08 +/- 4.50e-08
Energy Flux (Free Index): 9.90e-06 +/- 8.56e-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/579695/cmap_HighResolution_313977601_314236801_4FGL_J0956.7+2516_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='9.90e-06', photon_flux_error='3.44e-08', dlogl='1.01e-01', energy_flux='1.03e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-01 06:12:14.004094', photon_index_error2='1.09', photon_index2='2.96', ts='1.68', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='8.56e-06', EG='0.61', time_epoch_completed='1630501934.0', return_code='0', job_id='579695', GAL2='1.20', EG2='0.60', return_code2='0', energy_flux_error='9.50e-06', photon_flux_error2='4.50e-08', ts2='1.91', photon_index='2.55' WHERE bin_id='288' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:12:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 579695: <4FGL_J0956.7+2516_daily_bin288> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin288 149.176 25.2817 313977601 314236801 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 :                                   554.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            682 sec.

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

