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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin423
RA = 149.176, Dec = 25.2817
tmin = 348969601, tmax = 349228801
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='579928', job_status='RUN', time_executed='2021-09-01 06:01:39.079517', time_epoch_executed='1630501299.08' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579928/ft1_4FGL_J0956.7+2516_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579928/ft1_4FGL_J0956.7+2516_daily_bin423.fits outfile=/scratch/kocevski/579928/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin423.fits ra=149.176 dec=25.2817 rad=12.0 tmin=348969601.0 tmax=349228801.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.63
user 3.52
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579928/ft1_filtered_4FGL_J0956.7+2516_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/579928/ltcube_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.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/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits
.....................!
real 15.07
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579928/ft1_filtered_4FGL_J0956.7+2516_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/579928/ltcube_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.fits outfile=/scratch/kocevski/579928/expmap_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.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/579928/ltcube_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.fits
.....................!
real 195.30
user 186.70
sys 4.83

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/579928/ft1_filtered_4FGL_J0956.7+2516_daily_bin423.fits scfile=/scratch/kocevski/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits outfile=/scratch/kocevski/579928/cmap_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.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/579928/ft1_filtered_4FGL_J0956.7+2516_daily_bin423.fits scfile=/scratch/kocevski/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits outfile=/scratch/kocevski/579928/cmap_HighResolution_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579928/ft1_filtered_4FGL_J0956.7+2516_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/579928/ft2_4FGL_J0956.7+2516_daily_bin423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579928/Model_4FGL_J0956.7+2516_daily_bin423.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/579928/ft1_filtered_4FGL_J0956.7+2516_daily_bin423.fits.....................!
real 50.86
user 49.34
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2762       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .62092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    95.947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6401       1.0000         .10000E-03   10000.    
    12 'norm      '    7.0131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0802       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86668       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=   5564.478     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2018 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.151        .12185E-05** at limit **
   2  norm          .10000E-03    17.399        .55743E-05** at limit **
   3  norm          .10000E-03    1.3455       -.48691E-06** at limit **
   4  Prefactor     .10000E-03    16.701       -.58961E-05** at limit **
   5  Prefactor     2.2773        4.2358        .37117E-06   -.35493E-03
   6  Prefactor     .10000E-03    10.463       -.83011E-05** at limit **
   7  Prefactor     .10020E-03    299.70       -.29572E-03** at limit **
   8  Prefactor     95.924        46.691       -.19794E-04    .26241E-03
   9  Prefactor     .10000E-03    2.3174        .77638E-07** at limit **
  10  Prefactor     .10000E-03    9.7674        .61278E-05** at limit **
  11  Prefactor     3.6410        2.6237       -.32367E-06    .64933E-04
  12  norm          7.0133        7.0072       -.73635E-06    .73495E-04
  13  Prefactor     .10000E-03    2.4606        .41074E-07** at limit **
  14  Prefactor     .10000E-03    38.969        .44420E-05** at limit **
  15  Prefactor     1.7854        3.0745       -.19435E-07   -.23541E-03
  16  Prefactor     10.431        49.069       -.90219E-04    .73946E-05
  17  Prefactor     .10000E-03    6.3723       -.53593E-06** at limit **
  18  Prefactor     3.0807        2.1053       -.18623E-06    .39860E-04
  19  Normalizat    1.1198        .17446        .52710E-05    .75781E-03
  20  Prefactor     .86669        .16719        .24863E-05    .95205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.27729
  Prefactor  = 0.0001
  Prefactor  = 0.000100202
  Prefactor  = 95.924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64101
  norm       = 7.01325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78543
  Prefactor  = 10.4312
  Prefactor  = 0.0001
  Prefactor  = 3.08073
  Normalizat = 1.11981
  Prefactor  = 0.866692
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.478     FROM HESSE     STATUS=OK           285 CALLS     2303 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2867        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2773        4.1393        .19355E-03   -1.5406    
   6  Prefactor     .10000E-03    10.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10020E-03    301.82        .42091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     95.924        46.716        .20517E-03   -1.3746    
   9  Prefactor     .10000E-03    2.3237        .11087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6410        2.6234        .97839E-04   -1.5326    
  12  norm          7.0133        7.0050        .15149E-03   -1.5178    
  13  Prefactor     .10000E-03    2.5092        .11401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7854        3.0420        .16637E-03   -1.5441    
  16  Prefactor     10.431        49.658        .12385E-03   -1.5062    
  17  Prefactor     .10000E-03    6.4509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0807        2.1024        .86636E-04   -1.5357    
  19  Normalizat    1.1198        .19730        .22765E-03   -.89118    
  20  Prefactor     .86669        .18877        .25234E-03   -.97315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58933e-09
Minuit parameter uncertainties:
  1  3.18019e-05
  2  4.42876e-05
  3  0.000120296
  4  2.45463e-05
  5  4.13985
  6  2.21796e-05
  7  0.0156902
  8  46.7343
  9  4.32344e-07
  10  0.000128371
  11  2.62351
  12  7.00581
  13  7.46072e-06
  14  0.000154908
  15  3.04225
  16  45.5804
  17  6.50042e-05
  18  2.10244
  19  0.197433
  20  0.188908
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  4.323e-07  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.667e-01  1.889e-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.120e+00  1.974e-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: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/579928/likelihoodResults_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.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) = 5564.48026125
delta logL = -0.00204114676035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5564.47822035
delta logL = -2.44852344622e-07

Fit tolerance = 1e-08

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

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

 FCN=   5564.478     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      239 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4391        .11088E-02** at limit **
   2  Index         2.6072        6.0442        .20000        .33083E-07
   3  Normalizat    1.1198        .18941        .22765E-03   -.49140E-04
   4  Prefactor     .86669        .18807        .25234E-03   -.56497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60718
  Normalizat = 1.11981
  Prefactor  = 0.866687
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.478     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3259        .22175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6072        8.6960        .80000E-02   -.49902    
   3  Normalizat    1.1198        .18957        .91061E-05   -.89118    
   4  Prefactor     .86669        .18823        .10093E-04   -.97315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09064e-10
Minuit parameter uncertainties:
  1  4.4369e-05
  2  322.006
  3  0.189688
  4  0.188372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579928': 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) = 5564.47822009
delta logL = 1.82044459507e-08

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  4.437e-05  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.607e+00  3.220e+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:  8.667e-01  1.884e-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.120e+00  1.897e-01  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/579928/cmap_HighResolution_348969601_349228801_4FGL_J0956.7+2516_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-09-01 06:11:05.825323', job_id='579928', GAL2='0.87', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630501865.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='423' 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@bullet0122>
Subject: Job 579928: <4FGL_J0956.7+2516_daily_bin423> in cluster <slac> Done

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

Your job looked like:

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

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

