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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin401
RA = 149.176, Dec = 25.2817
tmin = 343267201, tmax = 343526401
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='579892', job_status='RUN', time_executed='2021-09-01 06:03:17.501040', time_epoch_executed='1630501397.5' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579892/ft1_4FGL_J0956.7+2516_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579892/ft1_4FGL_J0956.7+2516_daily_bin401.fits outfile=/scratch/kocevski/579892/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin401.fits ra=149.176 dec=25.2817 rad=12.0 tmin=343267201.0 tmax=343526401.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.62
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579892/ft1_filtered_4FGL_J0956.7+2516_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/579892/ltcube_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.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/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits
.....................!
real 13.08
user 12.26
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579892/ft1_filtered_4FGL_J0956.7+2516_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/579892/ltcube_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.fits outfile=/scratch/kocevski/579892/expmap_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.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/579892/ltcube_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.fits
.....................!
real 191.90
user 185.90
sys 5.10

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/579892/ft1_filtered_4FGL_J0956.7+2516_daily_bin401.fits scfile=/scratch/kocevski/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits outfile=/scratch/kocevski/579892/cmap_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=149.176 yref=25.2817 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579892/ft1_filtered_4FGL_J0956.7+2516_daily_bin401.fits scfile=/scratch/kocevski/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits outfile=/scratch/kocevski/579892/cmap_HighResolution_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579892/ft1_filtered_4FGL_J0956.7+2516_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/579892/ft2_4FGL_J0956.7+2516_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579892/Model_4FGL_J0956.7+2516_daily_bin401.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/579892/ft1_filtered_4FGL_J0956.7+2516_daily_bin401.fits.....................!
real 60.71
user 57.93
sys 1.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32414E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    31.599       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47518E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15436E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24336E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82891E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.315       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .68940E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33923E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18978E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8598       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5054       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0546       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=   6679.242     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     1551 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.069        .24930E-05** at limit **
   2  norm          31.971        36.580        .59170E-06    .38120E-04
   3  norm          .10000E-03    .73011       -.24999E-07** at limit **
   4  Prefactor     .10000E-03    14.285       -.26385E-05** at limit **
   5  Prefactor     .60050        2.3186        .38067E-06   -.21830E-03
   6  Prefactor     .10000E-03    16.242        .55095E-06** at limit **
   7  Prefactor     .10000E-03    16.027       -.86292E-06** at limit **
   8  Prefactor     .10000E-03    61.298        .21248E-05** at limit **
   9  Prefactor     4.5133        4.4021        .52904E-06    .44254E-03
  10  Prefactor     12.275        10.022        .18010E-05    .91393E-03
  11  Prefactor     .10000E-03    .67454        .26915E-07** at limit **
  12  norm          .10006E-03    5.5266       -.59275E-06** at limit **
  13  Prefactor     .10000E-03    2.6866       -.13120E-07** at limit **
  14  Prefactor     .10000E-03    12.250        .45767E-06** at limit **
  15  Prefactor     .56802        3.0105        .16560E-05   -.29547E-03
  16  Prefactor     .10000E-03    37.069       -.95587E-06** at limit **
  17  Prefactor     5.9571        8.2957       -.97154E-06   -.20639E-03
  18  Prefactor     4.4938        3.0047        .15267E-05   -.15914E-02
  19  Normalizat    1.0931        .17793       -.18077E-05   -.90427E-05
  20  Prefactor     1.0543        .17533        .56059E-06   -.11108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 31.9708
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.600501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.51331
  Prefactor  = 12.2749
  Prefactor  = 0.0001
  norm       = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.568018
  Prefactor  = 0.0001
  Prefactor  = 5.95715
  Prefactor  = 4.49377
  Normalizat = 1.09314
  Prefactor  = 1.05427
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.242     FROM HESSE     STATUS=OK           293 CALLS     1844 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.349        .21357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          31.971        36.655        .71279E-04   -1.4577    
   3  norm          .10000E-03    .74000        .68058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.780        .21182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .60050        7.9994        .22060E-02   -1.5553    
   6  Prefactor     .10000E-03    16.341        .20448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.509        .18415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5133        4.4108        .16386E-03   -1.5283    
  10  Prefactor     12.275        10.497        .11415E-03   -1.5007    
  11  Prefactor     .10000E-03    .68819        .65521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10006E-03    38.984        .36600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7625        .26070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.279        .19691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .56802        2.9905        .27540E-03   -1.5557    
  16  Prefactor     .10000E-03    37.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9571        8.2843        .16590E-03   -1.5220    
  18  Prefactor     4.4938        3.0936        .54798E-03   -1.5284    
  19  Normalizat    1.0931        .20499        .23393E-03   -.89972    
  20  Prefactor     1.0543        .20362        .24844E-03   -.90942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38137e-09
Minuit parameter uncertainties:
  1  0.00083607
  2  36.6804
  3  1.68103e-07
  4  0.00049675
  5  4.38381
  6  0.000113675
  7  0.000169132
  8  0.000880032
  9  4.41108
  10  10.4987
  11  8.69491e-08
  12  0.00295389
  13  2.53419e-05
  14  8.65447e-05
  15  2.60664
  16  0.000261818
  17  8.28589
  18  3.09369
  19  0.205136
  20  0.203772
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.513e+00  4.411e+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.054e+00  2.038e-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.093e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.61e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 7.22e-06 +/- 7.05e-06

TS (Fixed Index): 1.87
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579892/likelihoodResults_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.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) = 6678.32337084
delta logL = 0.918142549378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6678.26000456
delta logL = 0.981508826058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3109       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7853       1.0000          .0000       10.000    
     3 'Normalizat'    1.1094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0386       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=   6678.260     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3090        5.4386        .39946E-02    .30091E-04
   2  Index         1.7853        .40060        .20868       -.48460E-04
   3  Normalizat    1.1094        .16472        .37628E-01   -.17122E-04
   4  Prefactor     1.0385        .17306        .40632E-01   -.14703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.309
  Index      = 1.78531
  Normalizat = 1.10945
  Prefactor  = 1.03851
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.260     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3090        5.4742        .15978E-03   -1.5206    
   2  Index         1.7853        .46769        .79580E-02   -.69833    
   3  Normalizat    1.1094        .19031        .23236E-03   -.89449    
   4  Prefactor     1.0385        .19988        .24988E-03   -.91457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62734e-12
Minuit parameter uncertainties:
  1  5.47462
  2  0.468864
  3  0.190427
  4  0.200026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579892': 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) = 6678.26000435
delta logL = 0.981509036985

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  6.309e+00  5.475e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.785e+00  4.689e-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.039e+00  2.000e-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.109e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 149.176 25.282
Photon Index (Free Index): 1.79 +/- 0.47
Photon Flux (Free Index): 1.87e-08 +/- 1.82e-08
Energy Flux (Free Index): 2.34e-05 +/- 2.85e-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/579892/cmap_HighResolution_343267201_343526401_4FGL_J0956.7+2516_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', comment='SUCCESS', photon_flux='2.61e-08', energy_flux2='2.34e-05', photon_flux_error='2.55e-08', dlogl='9.82e-01', energy_flux='7.22e-06', photon_flux2='1.87e-08', job_status='DONE', time_completed='2021-09-01 06:13:05.571119', photon_index_error2='0.47', photon_index2='1.79', ts='1.87', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.92e-08', energy_flux_error2='2.85e-05', EG='1.09', time_epoch_completed='1630501985.57', return_code='0', job_id='579892', GAL2='1.04', EG2='1.11', return_code2='0', energy_flux_error='7.05e-06', photon_flux_error2='1.82e-08', ts2='3.85', photon_index='2.55' WHERE bin_id='401' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:13:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 579892: <4FGL_J0956.7+2516_daily_bin401> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin401> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 06:01:14 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:01:15 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:01:15 2021
Terminated at Wed Sep  1 06:13:06 2021
Results reported at Wed Sep  1 06:13:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin401 149.176 25.2817 343267201 343526401 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 :                                   574.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

