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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1106
RA = 149.176, Dec = 25.2817
tmin = 526003201, tmax = 526262401
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='583461', job_status='RUN', time_executed='2021-09-01 06:13:38.177584', time_epoch_executed='1630502018.18' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583461/ft1_4FGL_J0956.7+2516_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583461/ft1_4FGL_J0956.7+2516_daily_bin1106.fits outfile=/scratch/kocevski/583461/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1106.fits ra=149.176 dec=25.2817 rad=12.0 tmin=526003201.0 tmax=526262401.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.49
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.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/583461/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/583461/ltcube_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.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/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits
.....................!
real 11.93
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/583461/ltcube_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.fits outfile=/scratch/kocevski/583461/expmap_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.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/583461/ltcube_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.fits
.....................!
real 191.28
user 186.18
sys 4.66

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/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.fits scfile=/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits outfile=/scratch/kocevski/583461/cmap_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.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.93
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.fits scfile=/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits outfile=/scratch/kocevski/583461/cmap_HighResolution_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.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.73
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/583461/ft2_4FGL_J0956.7+2516_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583461/Model_4FGL_J0956.7+2516_daily_bin1106.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/583461/ft1_filtered_4FGL_J0956.7+2516_daily_bin1106.fits.....................!
real 52.56
user 50.73
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.116       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57788E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    76.464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42807       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2324       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85294       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=   5695.040     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2094 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.063        32.997       -.12446E-05   -.38505E-04
   2  norm          .10000E-03    32.960        .55279E-06** at limit **
   3  norm          1.3424        1.3616        .26619E-07    .22278E-03
   4  Prefactor     31.305        47.665       -.16549E-05   -.18666E-04
   5  Prefactor     2.2501        3.5371       -.36946E-06    .56494E-03
   6  Prefactor     .10001E-03    62.534        .23737E-04** at limit **
   7  Prefactor     16.147        60.751        .54208E-05    .27927E-04
   8  Prefactor     .10000E-03    25.711       -.89424E-06** at limit **
   9  Prefactor     8.3986        6.2999        .19697E-07    .15419E-03
  10  Prefactor     .10000E-03    3.8911       -.79103E-08** at limit **
  11  Prefactor     .10000E-03    .64453        .11484E-07** at limit **
  12  norm          1.3353        7.0660       -.21359E-05    .61802E-03
  13  Prefactor     .10000E-03    1.2874        .19395E-06** at limit **
  14  Prefactor     .10000E-03    20.376        .25829E-06** at limit **
  15  Prefactor     1.0569        2.5917       -.22185E-05   -.11422E-02
  16  Prefactor     76.460        49.600        .34899E-06    .77119E-04
  17  Prefactor     .10000E-03    4.2789        .30477E-06** at limit **
  18  Prefactor     .42826        1.2481       -.76558E-06    .19899E-03
  19  Normalizat    1.2329        .17408        .15713E-05    .41064E-03
  20  Prefactor     .85246        .18148        .13915E-06    .26003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.0635
  norm       = 0.000100001
  norm       = 1.3424
  Prefactor  = 31.3053
  Prefactor  = 2.25005
  Prefactor  = 0.00010001
  Prefactor  = 16.1465
  Prefactor  = 0.0001
  Prefactor  = 8.39855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05695
  Prefactor  = 76.4596
  Prefactor  = 0.0001
  Prefactor  = 0.428261
  Normalizat = 1.23289
  Prefactor  = 0.852457
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.040     FROM HESSE     STATUS=OK           299 CALLS     2393 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.063        33.069        .58415E-04   -1.4335    
   2  norm          .10000E-03    33.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3424        1.3629        .85238E-04   -1.5476    
   4  Prefactor     31.305        47.725        .71708E-04   -1.4588    
   5  Prefactor     2.2501        3.5073        .16675E-03   -1.5408    
   6  Prefactor     .10001E-03    61.333        .49450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.147        60.989        .99364E-04   -1.4904    
   8  Prefactor     .10000E-03    25.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3986        6.2890        .13835E-03   -1.5128    
  10  Prefactor     .10000E-03    3.9076        .14536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .64962        .59141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3353        6.9477        .37976E-03   -1.5477    
  13  Prefactor     .10000E-03    1.3012        .83610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0569        2.4661        .20144E-02   -1.5502    
  16  Prefactor     76.460        49.630        .45921E-04   -1.3957    
  17  Prefactor     .10000E-03    16.233        .29969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .42826        1.1865        .13968E-02   -1.5577    
  19  Normalizat    1.2329        .20427        .21581E-03   -.85592    
  20  Prefactor     .85246        .21299        .26727E-03   -.97823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15273e-09
Minuit parameter uncertainties:
  1  33.082
  2  0.000266043
  3  1.36288
  4  47.7835
  5  3.50763
  6  0.00155115
  7  61.2261
  8  0.000207374
  9  6.28953
  10  2.58453e-06
  11  1.46174e-06
  12  6.09261
  13  9.22241e-06
  14  2.81712e-05
  15  2.46631
  16  49.6572
  17  3.13822e-05
  18  1.18653
  19  0.204398
  20  0.213195
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  8.399e+00  6.290e+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:  8.525e-01  2.132e-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.233e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/583461/likelihoodResults_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.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) = 5694.77067167
delta logL = 0.269306671437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.7568404
delta logL = 0.28313794971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.049       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1089       1.0000          .0000       10.000    
     3 'Normalizat'    1.2525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83623       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=   5694.757     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      235 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.046        3.0128       -.18177E-06   -.39008E-03
   2  Index         2.1095        .42470        .85097E-06   -.68886E-04
   3  Normalizat    1.2525        .17173       -.41570E-07   -.40763E-03
   4  Prefactor     .83638        .18005        .67131E-07   -.38594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0455
  Index      = 2.10952
  Normalizat = 1.25253
  Prefactor  = 0.836382
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.757     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.046        7.2491        .63201E-03   -1.5074    
   2  Index         2.1095        .52901        .79836E-02   -.61639    
   3  Normalizat    1.2525        .20131        .21434E-03   -.84995    
   4  Prefactor     .83638        .21146        .26942E-03   -.98401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16307e-10
Minuit parameter uncertainties:
  1  7.24977
  2  0.5305
  3  0.201434
  4  0.211668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583461': 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) = 5694.75683762
delta logL = 0.283140721247

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.005e+01  7.250e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.110e+00  5.305e-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:  8.364e-01  2.117e-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.253e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.11 +/- 0.53
Photon Flux (Free Index): 3.75e-08 +/- 3.20e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.98e-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/583461/cmap_HighResolution_526003201_526262401_4FGL_J0956.7+2516_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='2.01e-05', photon_flux_error='3.64e-08', dlogl='2.83e-01', energy_flux='1.34e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-01 06:23:23.884438', photon_index_error2='0.53', photon_index2='2.11', ts='2.85', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.98e-05', EG='1.23', time_epoch_completed='1630502603.88', return_code='0', job_id='583461', GAL2='0.84', EG2='1.25', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='3.20e-08', ts2='3.43', photon_index='2.55' WHERE bin_id='1106' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 583461: <4FGL_J0956.7+2516_daily_bin1106> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin1106> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:11:33 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:11:34 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:11:34 2021
Terminated at Wed Sep  1 06:23:24 2021
Results reported at Wed Sep  1 06:23:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1106 149.176 25.2817 526003201 526262401 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 :                                   575.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

