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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1030
RA = 149.176, Dec = 25.2817
tmin = 506304001, tmax = 506563201
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='583344', job_status='RUN', time_executed='2021-09-01 06:13:39.332445', time_epoch_executed='1630502019.33' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583344

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583344/ft1_4FGL_J0956.7+2516_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583344/ft1_4FGL_J0956.7+2516_daily_bin1030.fits outfile=/scratch/kocevski/583344/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1030.fits ra=149.176 dec=25.2817 rad=12.0 tmin=506304001.0 tmax=506563201.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583344/ft1_filtered_4FGL_J0956.7+2516_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/583344/ltcube_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.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/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits
.....................!
real 12.25
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583344/ft1_filtered_4FGL_J0956.7+2516_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/583344/ltcube_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.fits outfile=/scratch/kocevski/583344/expmap_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.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/583344/ltcube_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.fits
.....................!
real 192.56
user 185.53
sys 4.69

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/583344/ft1_filtered_4FGL_J0956.7+2516_daily_bin1030.fits scfile=/scratch/kocevski/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits outfile=/scratch/kocevski/583344/cmap_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.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.70
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583344/ft1_filtered_4FGL_J0956.7+2516_daily_bin1030.fits scfile=/scratch/kocevski/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits outfile=/scratch/kocevski/583344/cmap_HighResolution_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.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.74
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583344/ft1_filtered_4FGL_J0956.7+2516_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/583344/ft2_4FGL_J0956.7+2516_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583344/Model_4FGL_J0956.7+2516_daily_bin1030.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/583344/ft1_filtered_4FGL_J0956.7+2516_daily_bin1030.fits.....................!
real 52.73
user 51.11
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.758       1.0000         .10000E-03   10000.    
     2 'norm      '    38.899       1.0000         .10000E-03   10000.    
     3 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15610E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    49.786       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32465       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79099       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1321       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=   5673.903     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2057 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.757        17.733        .45291E-06    .31221E-04
   2  norm          38.900        37.348        .41558E-06    .36017E-04
   3  norm          .10000E-03    .88557        .45500E-07** at limit **
   4  Prefactor     7.5995        42.207        .15837E-04    .16429E-03
   5  Prefactor     .10000E-03    1.0735       -.89531E-08** at limit **
   6  Prefactor     .10000E-03    28.080        .56115E-07** at limit **
   7  Prefactor     29.376        45.754        .18548E-05    .49585E-04
   8  Prefactor     32.956        37.124        .20580E-05    .79275E-04
   9  Prefactor     5.5797        5.1503        .13215E-05   -.20200E-02
  10  Prefactor     .10000E-03    4.3795        .16264E-07** at limit **
  11  Prefactor     .10000E-03    1.2838       -.28531E-07** at limit **
  12  norm          49.785        12.914       -.70614E-07   -.47756E-04
  13  Prefactor     3.6311        5.6055        .27133E-06   -.10620E-03
  14  Prefactor     .10000E-03    19.830       -.27785E-07** at limit **
  15  Prefactor     3.4301        7.7927       -.27827E-07   -.20821E-03
  16  Prefactor     50.208        50.156       -.24905E-05   -.11046E-03
  17  Prefactor     19.086        8.6182       -.10928E-07   -.63143E-04
  18  Prefactor     .32424        2.3080        .51073E-06   -.59918E-03
  19  Normalizat    .79106        .17382       -.40987E-06   -.76261E-04
  20  Prefactor     1.1319        .17802       -.97431E-06    .33157E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7575
  norm       = 38.8995
  norm       = 0.0001
  Prefactor  = 7.59946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3756
  Prefactor  = 32.9557
  Prefactor  = 5.57968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.7847
  Prefactor  = 3.63114
  Prefactor  = 0.0001
  Prefactor  = 3.43011
  Prefactor  = 50.2076
  Prefactor  = 19.0863
  Prefactor  = 0.324238
  Normalizat = 0.791057
  Prefactor  = 1.1319
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.903     FROM HESSE     STATUS=OK           297 CALLS     2354 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.757        17.698        .10426E-03   -1.4939    
   2  norm          38.900        37.366        .64265E-04   -1.4460    
   3  norm          .10000E-03    11.691        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5995        44.208        .14557E-03   -1.5157    
   5  Prefactor     .10000E-03    1.0800        .76179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.376        45.914        .73924E-04   -1.4623    
   8  Prefactor     32.956        37.175        .69804E-04   -1.4559    
   9  Prefactor     5.5797        7.4833        .85003E-03   -1.5235    
  10  Prefactor     .10000E-03    4.4180        .15391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5595        .16454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          49.785        12.954        .56835E-04   -1.4296    
  13  Prefactor     3.6311        5.3740        .14733E-03   -1.5327    
  14  Prefactor     .10000E-03    19.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4301        7.4881        .21166E-03   -1.5338    
  16  Prefactor     50.208        50.417        .56594E-04   -1.4290    
  17  Prefactor     19.086        8.5522        .91679E-04   -1.4834    
  18  Prefactor     .32424        2.4955        .22023E-02   -1.5594    
  19  Normalizat    .79106        .20351        .25810E-03   -1.0040    
  20  Prefactor     1.1319        .20727        .23551E-03   -.88454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68915e-09
Minuit parameter uncertainties:
  1  17.7038
  2  37.3881
  3  2.21834e-05
  4  36.699
  5  1.59227e-06
  6  4.59875e-06
  7  45.9694
  8  37.2015
  9  7.48452
  10  2.84243e-06
  11  1.83916e-05
  12  12.9548
  13  5.37471
  14  3.39256e-06
  15  7.49017
  16  50.4603
  17  8.55276
  18  1.79885
  19  0.203701
  20  0.20742
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.580e+00  7.485e+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.132e+00  2.074e-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:  7.911e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/583344/likelihoodResults_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.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): 102
logL (Free Index) = 5671.60843941
delta logL = 2.2950206267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.5737924
delta logL = 2.3296676377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11673E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.4537       1.0000          .0000       10.000    
     3 'Normalizat'    .69647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2092       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=   5671.574     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      389 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11581E-01    .10856        .90813E-03    .42833E-02
   2  Index         7.4586        3.1161        .12627        .10028E-03
   3  Normalizat    .69668        .56072E-01    .61693E-01    .22064E-04
   4  Prefactor     1.2091        .60329E-01    .51758E-01    .22119E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0115812
  Index      = 7.4586
  Normalizat = 0.696675
  Prefactor  = 1.2091
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.574     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      422 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11581E-01    .18853        .43880E-05   -1.5687    
   2  Index         7.4586        7.6544        .53097E-02    .51406    
   3  Normalizat    .69668        .17466        .27291E-03   -1.0402    
   4  Prefactor     1.2091        .18541        .22882E-03   -.86052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73252e-10
Minuit parameter uncertainties:
  1  0.0930498
  2  4.87881
  3  0.174797
  4  0.185509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583344': 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): 102
logL (Free Index) = 5671.57378991
delta logL = 2.32967012315

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.209e+00  1.855e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  6.967e-01  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.67
Ra Dec: 149.176 25.282
Photon Index (Free Index): 7.46 +/- 4.88
Photon Flux (Free Index): 9.48e-08 +/- 5.37e-08
Energy Flux (Free Index): 1.12e-05 +/- 6.94e-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/583344/cmap_HighResolution_506304001_506563201_4FGL_J0956.7+2516_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='2.33e+00', photon_flux2='9.48e-08', job_status='DONE', time_completed='2021-09-01 06:23:30.056033', photon_index_error2='4.88', photon_index2='7.46', ts='0.67', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='6.94e-06', EG='0.79', time_epoch_completed='1630502610.06', return_code='0', job_id='583344', GAL2='1.21', EG2='0.70', return_code2='102', photon_flux_error2='5.37e-08', ts2='5.67', photon_index='2.55' WHERE bin_id='1030' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:23:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 583344: <4FGL_J0956.7+2516_daily_bin1030> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1030 149.176 25.2817 506304001 506563201 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 :                                   578.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

