/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 239 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin96
RA = 149.176, Dec = 25.2817
tmin = 264211201, tmax = 264470401
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='578149', job_status='RUN', time_executed='2021-09-01 05:59:52.920454', time_epoch_executed='1630501192.92' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578149/ft1_4FGL_J0956.7+2516_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578149/ft1_4FGL_J0956.7+2516_daily_bin96.fits outfile=/scratch/kocevski/578149/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin96.fits ra=149.176 dec=25.2817 rad=12.0 tmin=264211201.0 tmax=264470401.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 1.70
user 1.54
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.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/578149/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin96.fits evtable="EVENTS" outfile="/scratch/kocevski/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.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/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/578149/ltcube_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.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/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits
.....................!
real 12.27
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/578149/ltcube_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.fits outfile=/scratch/kocevski/578149/expmap_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.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/578149/ltcube_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.fits
.....................!
real 191.57
user 185.02
sys 4.46

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/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.fits scfile=/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits outfile=/scratch/kocevski/578149/cmap_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.fits scfile=/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits outfile=/scratch/kocevski/578149/cmap_HighResolution_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.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.56
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/578149/ft2_4FGL_J0956.7+2516_daily_bin96.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578149/Model_4FGL_J0956.7+2516_daily_bin96.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/578149/ft1_filtered_4FGL_J0956.7+2516_daily_bin96.fits.....................!
real 52.64
user 50.98
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.173       1.0000         .10000E-03   10000.    
     2 'norm      '    33.101       1.0000         .10000E-03   10000.    
     3 'norm      '    .96505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7331       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8057       1.0000         .10000E-03   10000.    
    12 'norm      '    10.794       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4565       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6704       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21077E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0041       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92818       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=   5785.348     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2041 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.174        24.694        .15432E-02   -.74460E-03
   2  norm          33.101        29.034        .17412E-02    .83976E-03
   3  norm          .96507        .93035        .13042E-01   -.52169E-04
   4  Prefactor     48.498        54.515        .14395E-02    .12236E-02
   5  Prefactor     3.7335        3.2602        .52247E-02    .29319E-03
   6  Prefactor     29.218        24.567        .18530E-02   -.18485E-03
   7  Prefactor     18.522        42.744        .23266E-02    .32876E-03
   8  Prefactor     37.373        35.670        .16390E-02   -.33956E-03
   9  Prefactor     5.9489        6.3768        .41162E-02    .10160E-02
  10  Prefactor     .10000E-03    4.0023        .90712E-02** at limit **
  11  Prefactor     1.8060        2.3384        .77751E-02    .56330E-03
  12  norm          10.794        8.5809        .30487E-02    .86505E-04
  13  Prefactor     .10000E-03    1.9374        .90712E-02** at limit **
  14  Prefactor     .10000E-03    13.506        .90712E-02** at limit **
  15  Prefactor     3.4581        4.5405        .54382E-02    .34518E-03
  16  Prefactor     .10000E-03    38.519        .90712E-02** at limit **
  17  Prefactor     7.6797        8.1555        .36198E-02    .38378E-03
  18  Prefactor     .10000E-03    1.2515        .51785E-01** at limit **
  19  Normalizat    1.0039        .17950        .46218E-01    .35584E-04
  20  Prefactor     .92842        .17929        .45363E-01    .26313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.1736
  norm       = 33.1008
  norm       = 0.965073
  Prefactor  = 48.498
  Prefactor  = 3.73347
  Prefactor  = 29.2178
  Prefactor  = 18.5218
  Prefactor  = 37.3726
  Prefactor  = 5.94893
  Prefactor  = 0.0001
  Prefactor  = 1.80601
  norm       = 10.794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4581
  Prefactor  = 0.0001
  Prefactor  = 7.67965
  Prefactor  = 0.0001
  Normalizat = 1.00385
  Prefactor  = 0.928416
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.348     FROM HESSE     STATUS=OK           293 CALLS     2334 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.174        24.698        .61729E-04   -1.4408    
   2  norm          33.101        29.040        .69648E-04   -1.4557    
   3  norm          .96507        .96295        .70144E-03   -1.5511    
   4  Prefactor     48.498        54.581        .57580E-04   -1.4314    
   5  Prefactor     3.7335        3.2549        .12238E-03   -1.5322    
   6  Prefactor     29.218        24.597        .74120E-04   -1.4626    
   7  Prefactor     18.522        42.744        .93063E-04   -1.4847    
   8  Prefactor     37.373        35.698        .65560E-04   -1.4485    
   9  Prefactor     5.9489        6.3688        .16465E-03   -1.5220    
  10  Prefactor     .10000E-03    4.0174        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8060        2.3199        .12484E-03   -1.5439    
  12  norm          10.794        8.5806        .12195E-03   -1.5051    
  13  Prefactor     .10000E-03    1.9548        .10305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4581        4.5392        .17692E-03   -1.5336    
  16  Prefactor     .10000E-03    38.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6797        7.9072        .14479E-03   -1.5154    
  18  Prefactor     .10000E-03    7.8127        .15739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0039        .21118        .23287E-03   -.92902    
  20  Prefactor     .92842        .21068        .25289E-03   -.95155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36428e-08
Minuit parameter uncertainties:
  1  24.7038
  2  29.0528
  3  0.962966
  4  54.6376
  5  3.25506
  6  24.6051
  7  42.8143
  8  35.7183
  9  6.3695
  10  1.06872e-05
  11  2.32001
  12  8.58159
  13  4.13696e-06
  14  7.6082e-06
  15  4.53965
  16  7.78619e-05
  17  7.90828
  18  6.29369e-06
  19  0.211354
  20  0.210866
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.949e+00  6.370e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.284e-01  2.109e-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.004e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 9.51e-06 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/578149/likelihoodResults_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.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) = 5785.32463534
delta logL = 0.0238549216456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5785.32002378
delta logL = 0.0284664749524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3553       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7505       1.0000          .0000       10.000    
     3 'Normalizat'    .99728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93308       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=   5785.320     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3535        156.66        .43416E-02    .35755E-03
   2  Index         2.7517        6.3079        .22744        .59851E-04
   3  Normalizat    .99746        .57209E-01    .46133E-01    .15256E-04
   4  Prefactor     .93293        .59046E-01    .45425E-01    .42531E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35351
  Index      = 2.75175
  Normalizat = 0.997461
  Prefactor  = 0.932925
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.320     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3535        6.6610        .17050E-03   -1.5245    
   2  Index         2.7517        .90371        .90794E-02   -.46637    
   3  Normalizat    .99746        .19964        .23351E-03   -.93116    
   4  Prefactor     .93293        .20749        .25234E-03   -.95000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90061e-12
Minuit parameter uncertainties:
  1  6.66194
  2  0.909991
  3  0.199791
  4  0.207671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578149': 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) = 5785.3200219
delta logL = 0.0284683608925

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.354e+00  6.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.752e+00  9.100e-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:  9.329e-01  2.077e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.975e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.75 +/- 0.91
Photon Flux (Free Index): 3.93e-08 +/- 4.28e-08
Energy Flux (Free Index): 9.10e-06 +/- 9.64e-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/578149/cmap_HighResolution_264211201_264470401_4FGL_J0956.7+2516_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='9.10e-06', photon_flux_error='3.69e-08', dlogl='2.85e-02', energy_flux='9.51e-06', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-01 06:09:11.728308', photon_index_error2='0.91', photon_index2='2.75', ts='1.27', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.64e-06', EG='1.00', time_epoch_completed='1630501751.73', return_code='0', job_id='578149', GAL2='0.93', EG2='1.00', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.28e-08', ts2='1.33', photon_index='2.55' WHERE bin_id='96' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:09:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 578149: <4FGL_J0956.7+2516_daily_bin96> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin96> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:43 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 05:55:44 2021
Terminated at Wed Sep  1 06:09:12 2021
Results reported at Wed Sep  1 06:09:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin96 149.176 25.2817 264211201 264470401 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.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

