/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin335
RA = 149.176, Dec = 25.2817
tmin = 326160001, tmax = 326419201
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='579755', job_status='RUN', time_executed='2021-09-01 06:01:33.667147', time_epoch_executed='1630501293.67' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579755

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579755/ft1_4FGL_J0956.7+2516_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579755/ft1_4FGL_J0956.7+2516_daily_bin335.fits outfile=/scratch/kocevski/579755/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin335.fits ra=149.176 dec=25.2817 rad=12.0 tmin=326160001.0 tmax=326419201.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.75
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579755/ft1_filtered_4FGL_J0956.7+2516_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/579755/ltcube_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.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/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits
.....................!
real 15.04
user 14.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579755/ft1_filtered_4FGL_J0956.7+2516_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/579755/ltcube_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.fits outfile=/scratch/kocevski/579755/expmap_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.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/579755/ltcube_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.fits
.....................!
real 193.08
user 184.84
sys 4.58

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/579755/ft1_filtered_4FGL_J0956.7+2516_daily_bin335.fits scfile=/scratch/kocevski/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits outfile=/scratch/kocevski/579755/cmap_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579755/ft1_filtered_4FGL_J0956.7+2516_daily_bin335.fits scfile=/scratch/kocevski/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits outfile=/scratch/kocevski/579755/cmap_HighResolution_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579755/ft1_filtered_4FGL_J0956.7+2516_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/579755/ft2_4FGL_J0956.7+2516_daily_bin335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579755/Model_4FGL_J0956.7+2516_daily_bin335.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/579755/ft1_filtered_4FGL_J0956.7+2516_daily_bin335.fits.....................!
real 51.49
user 49.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10986E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25435E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44801       1.0000         .10000E-03   10000.    
    12 'norm      '    12.174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.858       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2714       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0131       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99573       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=   5570.182     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2071 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.762        .11265E-06** at limit **
   2  norm          .10000E-03    21.062        .32563E-06** at limit **
   3  norm          .10000E-03    1.0278        .10066E-06** at limit **
   4  Prefactor     .10000E-03    42.271        .35331E-06** at limit **
   5  Prefactor     .10000E-03    2.5954        .53062E-06** at limit **
   6  Prefactor     .10000E-03    14.173        .18877E-06** at limit **
   7  Prefactor     .10000E-03    20.335       -.26102E-06** at limit **
   8  Prefactor     71.352        46.951       -.13641E-05   -.20568E-03
   9  Prefactor     5.5834        5.6450       -.10592E-06   -.13007E-04
  10  Prefactor     18.614        13.063       -.54056E-07    .27666E-04
  11  Prefactor     .44910        2.1846       -.26709E-06    .47938E-03
  12  norm          12.172        9.2279       -.97937E-07    .20999E-04
  13  Prefactor     3.1601        4.3666        .22688E-06   -.80570E-05
  14  Prefactor     2.3195        87.502       -.23825E-05   -.40666E-04
  15  Prefactor     .10000E-03    5.3962       -.10468E-06** at limit **
  16  Prefactor     32.830        60.039       -.47769E-05   -.15611E-03
  17  Prefactor     7.2679        9.0191        .32166E-05   -.30710E-03
  18  Prefactor     .10000E-03    1.7075       -.26405E-06** at limit **
  19  Normalizat    1.0133        .19710        .35787E-06   -.49041E-04
  20  Prefactor     .99570        .18168       -.13375E-05    .35759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.3521
  Prefactor  = 5.58341
  Prefactor  = 18.6145
  Prefactor  = 0.449099
  norm       = 12.1724
  Prefactor  = 3.1601
  Prefactor  = 2.31946
  Prefactor  = 0.0001
  Prefactor  = 32.8301
  Prefactor  = 7.26791
  Prefactor  = 0.0001
  Normalizat = 1.01329
  Prefactor  = 0.995698
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.182     FROM HESSE     STATUS=OK           295 CALLS     2366 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    21.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8114        .14654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2190        .22937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     71.352        47.866        .47520E-04   -1.4017    
   9  Prefactor     5.5834        5.6354        .16946E-03   -1.5235    
  10  Prefactor     18.614        13.056        .92828E-04   -1.4845    
  11  Prefactor     .44910        8.8108        .19202E-02   -1.5574    
  12  norm          12.172        9.2214        .11481E-03   -1.5010    
  13  Prefactor     3.1601        4.3354        .17202E-03   -1.5352    
  14  Prefactor     2.3195        89.082        .26878E-03   -1.5403    
  15  Prefactor     .10000E-03    5.4971        .33634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.830        62.406        .69905E-04   -1.4561    
  17  Prefactor     7.2679        9.3576        .74373E-03   -1.5169    
  18  Prefactor     .10000E-03    1.7718        .19089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0133        .23230        .24393E-03   -.92587    
  20  Prefactor     .99570        .21256        .24643E-03   -.92873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74885e-09
Minuit parameter uncertainties:
  1  2.00821e-06
  2  4.26435e-05
  3  2.25527e-05
  4  3.53273e-05
  5  9.43142e-05
  6  1.73437e-05
  7  4.33346e-05
  8  47.8922
  9  5.63597
  10  13.058
  11  3.97864
  12  9.22247
  13  4.33581
  14  28.7943
  15  1.35965e-06
  16  62.5301
  17  9.35945
  18  1.98344e-05
  19  0.232529
  20  0.212739
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.583e+00  5.636e+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.957e-01  2.127e-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.013e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 8.93e-06 +/- 9.01e-06

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

Saving results to:
/scratch/kocevski/579755/likelihoodResults_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.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) = 5569.40897658
delta logL = 0.772859340494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5569.39352876
delta logL = 0.78830715938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7278       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6547       1.0000          .0000       10.000    
     3 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97845       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=   5569.394     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7278        4.5565        .46264E-02    .93483E-03
   2  Index         1.6547        .41590        .21827       -.55595E-04
   3  Normalizat    1.0390        .17928        .41363E-01    .82811E-05
   4  Prefactor     .97845        .18052        .45997E-01    .87374E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7278
  Index      = 1.65474
  Normalizat = 1.03898
  Prefactor  = 0.978446
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.394     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7278        5.5740        .15182E-03   -1.5273    
   2  Index         1.6547        .60287        .81380E-02   -.73293    
   3  Normalizat    1.0390        .20890        .24118E-03   -.91736    
   4  Prefactor     .97845        .21030        .24821E-03   -.93451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33715e-10
Minuit parameter uncertainties:
  1  5.57462
  2  0.60555
  3  0.209068
  4  0.210474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579755': 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) = 5569.39352876
delta logL = 0.788307161501

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.728e+00  5.575e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.655e+00  6.055e-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.784e-01  2.105e-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.039e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 149.176 25.282
Photon Index (Free Index): 1.65 +/- 0.61
Photon Flux (Free Index): 1.32e-08 +/- 1.72e-08
Energy Flux (Free Index): 2.50e-05 +/- 3.66e-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/579755/cmap_HighResolution_326160001_326419201_4FGL_J0956.7+2516_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='2.50e-05', photon_flux_error='3.26e-08', dlogl='7.88e-01', energy_flux='8.93e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-01 06:10:53.676987', photon_index_error2='0.61', photon_index2='1.65', ts='2.17', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='3.66e-05', EG='1.01', time_epoch_completed='1630501853.68', return_code='0', job_id='579755', GAL2='0.98', EG2='1.04', return_code2='0', energy_flux_error='9.01e-06', photon_flux_error2='1.72e-08', ts2='3.76', photon_index='2.55' WHERE bin_id='335' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 579755: <4FGL_J0956.7+2516_daily_bin335> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin335 149.176 25.2817 326160001 326419201 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            593 sec.

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

