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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1045
RA = 149.176, Dec = 25.2817
tmin = 510192001, tmax = 510451201
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='583367', job_status='RUN', time_executed='2021-09-01 06:11:46.015803', time_epoch_executed='1630501906.02' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583367/ft1_4FGL_J0956.7+2516_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583367/ft1_4FGL_J0956.7+2516_daily_bin1045.fits outfile=/scratch/kocevski/583367/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1045.fits ra=149.176 dec=25.2817 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.36
user 4.05
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.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/583367/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/583367/ltcube_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.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/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits
.....................!
real 12.17
user 11.52
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/583367/ltcube_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.fits outfile=/scratch/kocevski/583367/expmap_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.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/583367/ltcube_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.fits
.....................!
real 194.89
user 188.04
sys 5.60

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/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits scfile=/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits outfile=/scratch/kocevski/583367/cmap_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.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.75
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits scfile=/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits outfile=/scratch/kocevski/583367/cmap_HighResolution_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.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 2.53
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/583367/ft2_4FGL_J0956.7+2516_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583367/Model_4FGL_J0956.7+2516_daily_bin1045.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/583367/ft1_filtered_4FGL_J0956.7+2516_daily_bin1045.fits.....................!
real 57.46
user 50.61
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    113.02       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12877E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    177.67       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6895       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3180       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.557       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.700       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2394       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0485       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93735       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=   5509.531     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2035 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.665        .37806E-07** at limit **
   2  norm          112.99        54.452        .11789E-05   -.37867E-04
   3  norm          1.3150        1.7646        .12359E-07   -.16744E-03
   4  Prefactor     .10000E-03    135.80       -.48149E-06** at limit **
   5  Prefactor     .23074        2.2966        .25895E-06    .88614E-04
   6  Prefactor     .10000E-03    10.933        .26921E-06** at limit **
   7  Prefactor     177.65        99.721        .11771E-05   -.30979E-04
   8  Prefactor     .10000E-03    22.819        .27000E-06** at limit **
   9  Prefactor     3.6891        8.9939        .59060E-06   -.25326E-04
  10  Prefactor     8.3160        10.183       -.44751E-06   -.11422E-03
  11  Prefactor     .10000E-03    .93821        .16801E-06** at limit **
  12  norm          15.561        11.314        .16826E-06   -.59936E-04
  13  Prefactor     1.1536        12.131       -.52490E-06    .37171E-05
  14  Prefactor     16.771        56.118        .10144E-04   -.48235E-04
  15  Prefactor     4.4695        9.2935        .34060E-05   -.32914E-04
  16  Prefactor     46.705        62.110       -.73291E-06   -.21129E-04
  17  Prefactor     .10000E-03    9.4136       -.17460E-06** at limit **
  18  Prefactor     2.2398        1.9857        .70142E-07   -.21647E-04
  19  Normalizat    1.0486        .19164       -.23640E-05   -.20412E-03
  20  Prefactor     .93728        .18110       -.52562E-06   -.24171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 112.994
  norm       = 1.315
  Prefactor  = 0.0001
  Prefactor  = 0.230744
  Prefactor  = 0.0001
  Prefactor  = 177.645
  Prefactor  = 0.0001
  Prefactor  = 3.68912
  Prefactor  = 8.31603
  Prefactor  = 0.0001
  norm       = 15.5611
  Prefactor  = 1.15364
  Prefactor  = 16.7705
  Prefactor  = 4.46953
  Prefactor  = 46.7054
  Prefactor  = 0.0001
  Prefactor  = 2.23976
  Normalizat = 1.04856
  Prefactor  = 0.937275
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.531     FROM HESSE     STATUS=OK           295 CALLS     2330 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          112.99        54.446        .18920E-03   -1.3578    
   3  norm          1.3150        1.7598        .10633E-03   -1.5479    
   4  Prefactor     .10000E-03    136.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .23074        18.254        .20337E-02   -1.5612    
   6  Prefactor     .10000E-03    10.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     177.65        99.665        .15140E-03   -1.3034    
   8  Prefactor     .10000E-03    22.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6891        8.9547        .21026E-03   -1.5324    
  10  Prefactor     8.3160        10.186        .13900E-03   -1.5131    
  11  Prefactor     .10000E-03    .96208        .14043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.561        11.294        .10155E-03   -1.4919    
  13  Prefactor     1.1536        12.432        .30747E-03   -1.5493    
  14  Prefactor     16.771        55.977        .97500E-04   -1.4889    
  15  Prefactor     4.4695        9.3785        .95152E-03   -1.5285    
  16  Prefactor     46.705        62.178        .58674E-04   -1.4340    
  17  Prefactor     .10000E-03    9.5745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2398        1.9832        .95451E-04   -1.5409    
  19  Normalizat    1.0486        .21658        .24136E-03   -.91421    
  20  Prefactor     .93728        .20664        .25579E-03   -.94850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28596e-10
Minuit parameter uncertainties:
  1  1.84466e-05
  2  54.4697
  3  1.75983
  4  0.000383297
  5  4.10503
  6  1.4991e-05
  7  99.7599
  8  3.94639e-05
  9  8.95791
  10  10.1881
  11  3.93918e-06
  12  11.2957
  13  7.5758
  14  56.1535
  15  9.38162
  16  62.2643
  17  2.18916e-05
  18  1.98328
  19  0.216765
  20  0.206817
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  3.689e+00  8.958e+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.373e-01  2.068e-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.049e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583367/likelihoodResults_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.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) = 5507.63975654
delta logL = 1.89090507581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5507.24372507
delta logL = 2.28693654295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11267E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.1505       1.0000          .0000       10.000    
     3 'Normalizat'    .90697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0411       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=   5507.244     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      340 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10910E-02    .10310E-01    .34440E-03** at limit **
   2  Index         9.1710        7.8125        .18611        .23339E-04
   3  Normalizat    .90709        .59537E-01    .44991E-01   -.12082E-04
   4  Prefactor     1.0410        .60494E-01    .40464E-01   -.10031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00109101
  Index      = 9.17097
  Normalizat = 0.90709
  Prefactor  = 1.04099
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.244     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      375 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10910E-02    .17334E-01    .13442E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1710        8.6277        .84856E-02    .98667    
   3  Normalizat    .90709        .17343        .25642E-03   -.96211    
   4  Prefactor     1.0410        .17250        .24429E-03   -.91376    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85808e-11
Minuit parameter uncertainties:
  1  0.00828941
  2  4.5536
  3  0.17354
  4  0.172588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583367': 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) = 5507.24370764
delta logL = 2.28695397001

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.091e-03  8.289e-03  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  9.171e+00  4.554e+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.041e+00  1.726e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.071e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 149.176 25.282
Photon Index (Free Index): 9.17 +/- 4.55
Photon Flux (Free Index): 1.46e-07 +/- 7.60e-08
Energy Flux (Free Index): 1.66e-05 +/- 8.98e-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/583367/cmap_HighResolution_510192001_510451201_4FGL_J0956.7+2516_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.66e-05', dlogl='2.29e+00', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-01 06:21:45.264467', photon_index_error2='4.55', photon_index2='9.17', ts='0.20', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='8.98e-06', EG='1.05', time_epoch_completed='1630502505.26', return_code='0', job_id='583367', GAL2='1.04', EG2='0.91', return_code2='102', photon_flux_error2='7.60e-08', ts2='5.25', photon_index='2.55' WHERE bin_id='1045' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:21:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 583367: <4FGL_J0956.7+2516_daily_bin1045> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1045 149.176 25.2817 510192001 510451201 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 :                                   566.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            622 sec.

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

