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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin373
RA = 149.176, Dec = 25.2817
tmin = 336009601, tmax = 336268801
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='579815', job_status='RUN', time_executed='2021-09-01 06:01:28.779206', time_epoch_executed='1630501288.78' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579815/ft1_4FGL_J0956.7+2516_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579815/ft2_4FGL_J0956.7+2516_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579815/ft1_4FGL_J0956.7+2516_daily_bin373.fits outfile=/scratch/kocevski/579815/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin373.fits ra=149.176 dec=25.2817 rad=12.0 tmin=336009601.0 tmax=336268801.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.59
user 3.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579815/ft1_filtered_4FGL_J0956.7+2516_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/579815/ft2_4FGL_J0956.7+2516_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/579815/ltcube_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.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/579815/ft2_4FGL_J0956.7+2516_daily_bin373.fits
.....................!
real 12.15
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579815/ft1_filtered_4FGL_J0956.7+2516_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/579815/ft2_4FGL_J0956.7+2516_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/579815/ltcube_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.fits outfile=/scratch/kocevski/579815/expmap_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.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/579815/ltcube_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.fits
.....................!
real 194.59
user 185.30
sys 3.68

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/579815/ft1_filtered_4FGL_J0956.7+2516_daily_bin373.fits scfile=/scratch/kocevski/579815/ft2_4FGL_J0956.7+2516_daily_bin373.fits outfile=/scratch/kocevski/579815/cmap_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579815/ft1_filtered_4FGL_J0956.7+2516_daily_bin373.fits scfile=/scratch/kocevski/579815/ft2_4FGL_J0956.7+2516_daily_bin373.fits outfile=/scratch/kocevski/579815/cmap_HighResolution_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.876       1.0000         .10000E-03   10000.    
     2 'norm      '    17.707       1.0000         .10000E-03   10000.    
     3 'norm      '    .63607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2106       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94797       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=   5604.233     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2059 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.873        26.894        .59684E-06    .14031E-03
   2  norm          17.709        22.952        .50062E-06    .16106E-03
   3  norm          .63581        1.3080        .49974E-06    .33359E-03
   4  Prefactor     2.1803        275.58        .10713E-05   -.10500E-04
   5  Prefactor     .10000E-03    2.7018        .56483E-07** at limit **
   6  Prefactor     .10000E-03    12.223       -.23166E-08** at limit **
   7  Prefactor     .10000E-03    75.642       -.72057E-07** at limit **
   8  Prefactor     13.698        36.565       -.49299E-07   -.63978E-04
   9  Prefactor     .10000E-03    8.6818        .39759E-07** at limit **
  10  Prefactor     .10000E-03    3.3794       -.33697E-07** at limit **
  11  Prefactor     .10000E-03    .87553       -.82792E-08** at limit **
  12  norm          2.0468        6.6848        .12693E-05    .42735E-04
  13  Prefactor     .54120        4.2697        .25609E-05   -.22861E-03
  14  Prefactor     .10000E-03    36.811        .13945E-07** at limit **
  15  Prefactor     .10000E-03    3.3318       -.11353E-05** at limit **
  16  Prefactor     .10000E-03    22.465       -.16833E-07** at limit **
  17  Prefactor     10.409        6.9366        .32164E-06    .50188E-03
  18  Prefactor     .10000E-03    1.2092        .65894E-07** at limit **
  19  Normalizat    1.2106        .18299       -.76986E-06    .32405E-04
  20  Prefactor     .94799        .18311        .62565E-07   -.70943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8733
  norm       = 17.7094
  norm       = 0.635805
  Prefactor  = 2.1803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04683
  Prefactor  = 0.541197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4089
  Prefactor  = 0.0001
  Normalizat = 1.21056
  Prefactor  = 0.94799
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.233     FROM HESSE     STATUS=OK           295 CALLS     2354 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.873        26.901        .97494E-04   -1.4886    
   2  norm          17.709        23.118        .95179E-04   -1.4866    
   3  norm          .63581        1.1072        .12531E-02   -1.5548    
   4  Prefactor     2.1803        278.01        .26502E-03   -1.5413    
   5  Prefactor     .10000E-03    2.7476        .11996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.698        36.706        .10820E-03   -1.4968    
   9  Prefactor     .10000E-03    8.8601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3936        .13439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .88339        .68373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0468        6.5962        .28899E-03   -1.5422    
  13  Prefactor     .54120        4.3304        .29100E-02   -1.5561    
  14  Prefactor     .10000E-03    36.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1446        .25313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.409        7.0093        .12419E-03   -1.5063    
  18  Prefactor     .10000E-03    1.2516        .16066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2106        .21655        .22574E-03   -.86277    
  20  Prefactor     .94799        .21839        .25585E-03   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88949e-08
Minuit parameter uncertainties:
  1  26.9203
  2  23.1295
  3  1.10727
  4  49.4751
  5  6.37746e-06
  6  3.50877e-06
  7  2.98446e-05
  8  36.7669
  9  4.03873e-06
  10  1.43435e-07
  11  3.67102e-07
  12  6.59854
  13  3.06179
  14  8.77162e-07
  15  4.37729e-05
  16  4.78624e-06
  17  7.00984
  18  2.57178e-06
  19  0.21671
  20  0.218596
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  4.039e-06  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.480e-01  2.186e-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.211e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/579815/likelihoodResults_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.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) = 5604.23317463
delta logL = -0.000537988179531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5604.23263666
delta logL = -1.48929757415e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5655       1.0000          .0000       10.000    
     3 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94804       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5604.233     FROM MIGRAD    STATUS=FAILED        90 CALLS      243 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    90.890        .36285E-02** at limit **
   2  Index         2.6483        8.5839        .50000       -.14198E-04
   3  Normalizat    1.2106        .14041E-01    .22574E-03    .19342E-03
   4  Prefactor     .94799        .14350E-01    .25585E-03    .14521E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5604.233     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      367 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    90.890        .44210E-03** at limit **
   2  Index         2.6483        8.5839        .48970E-03   -.14198E-04
   3  Normalizat    1.2106        .14041E-01    .22828E-05    .19342E-03
   4  Prefactor     .94799        .14350E-01    .28689E-05    .14521E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5604.233     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      413 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.548        .72569E-02** at limit **
   2  Index         2.9247        6.4196        .50000        .23251E-06
   3  Normalizat    1.2106        .64411E-02    .45148E-04   -.16884E-02
   4  Prefactor     .94799        .65832E-02    .10234E-04   -.15123E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.92472
  Normalizat = 1.21055
  Prefactor  = 0.947988
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.233     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    654.04        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9247        5.9575        .50000       -.42800    
   3  Normalizat    1.2106        .38865E-01    .90295E-05   -.86277    
   4  Prefactor     .94799        .39713E-01    .20468E-05   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78077e-09
Minuit parameter uncertainties:
  1  0.00172345
  2  983.989
  3  0.0388658
  4  0.0397145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579815': 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) = 5604.23263583
delta logL = 8.14234226709e-07

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.723e-03  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.925e+00  9.840e+02  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.480e-01  3.971e-02  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.211e+00  3.887e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.176 25.282

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/579815/cmap_HighResolution_336009601_336268801_4FGL_J0956.7+2516_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-09-01 06:11:05.342221', job_id='579815', GAL2='0.95', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630501865.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='373' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:11:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 579815: <4FGL_J0956.7+2516_daily_bin373> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin373 149.176 25.2817 336009601 336268801 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 :                                   559.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            601 sec.

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

