/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7584
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin778
RA = 149.176, Dec = 25.2817
tmin = 440985601, tmax = 441244801
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='582966', job_status='RUN', time_executed='2021-09-01 06:12:33.216347', time_epoch_executed='1630501953.22' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582966

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/582966/ft1_4FGL_J0956.7+2516_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582966/ft1_4FGL_J0956.7+2516_daily_bin778.fits outfile=/scratch/kocevski/582966/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin778.fits ra=149.176 dec=25.2817 rad=12.0 tmin=440985601.0 tmax=441244801.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 5.12
user 3.20
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/582966/ft1_filtered_4FGL_J0956.7+2516_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/582966/ltcube_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.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/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits
.....................!
real 15.09
user 14.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582966/ft1_filtered_4FGL_J0956.7+2516_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/582966/ltcube_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.fits outfile=/scratch/kocevski/582966/expmap_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.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/582966/ltcube_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.fits
.....................!
real 190.75
user 185.47
sys 4.87

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/582966/ft1_filtered_4FGL_J0956.7+2516_daily_bin778.fits scfile=/scratch/kocevski/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits outfile=/scratch/kocevski/582966/cmap_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.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 1.03
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582966/ft1_filtered_4FGL_J0956.7+2516_daily_bin778.fits scfile=/scratch/kocevski/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits outfile=/scratch/kocevski/582966/cmap_HighResolution_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.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.71
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/582966/ft1_filtered_4FGL_J0956.7+2516_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/582966/ft2_4FGL_J0956.7+2516_daily_bin778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/582966/Model_4FGL_J0956.7+2516_daily_bin778.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/582966/ft1_filtered_4FGL_J0956.7+2516_daily_bin778.fits.....................!
real 64.30
user 56.40
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.637       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2401       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.538       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7405       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2748       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5431       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90162       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2222       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=   6625.697     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2045 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4744        .56111E-06** at limit **
   2  norm          18.637        22.607        .20951E-07   -.80255E-05
   3  norm          .10000E-03    .46584        .19347E-07** at limit **
   4  Prefactor     .10000E-03    16.753       -.55596E-06** at limit **
   5  Prefactor     6.2405        3.9225        .17558E-06    .83409E-04
   6  Prefactor     .10000E-03    9.5418       -.48878E-06** at limit **
   7  Prefactor     .10000E-03    12.718        .11306E-05** at limit **
   8  Prefactor     14.903        30.454        .11795E-05    .41751E-04
   9  Prefactor     1.1026        3.6820        .12205E-05   -.23178E-04
  10  Prefactor     11.537        11.244       -.15632E-06   -.77630E-04
  11  Prefactor     1.7409        2.8089        .27329E-06   -.19215E-03
  12  norm          .10000E-03    9.3295       -.54415E-06** at limit **
  13  Prefactor     .10000E-03    1.9237       -.28393E-06** at limit **
  14  Prefactor     2.2655        139.82       -.38746E-05   -.36962E-04
  15  Prefactor     .52953        5.8017        .34567E-05   -.23601E-03
  16  Prefactor     3.5311        95.388       -.60056E-05   -.61146E-04
  17  Prefactor     23.030        9.0747        .58647E-07   -.35059E-04
  18  Prefactor     .10000E-03    .87474        .57999E-07** at limit **
  19  Normalizat    .90149        .17608       -.10007E-05   -.85445E-04
  20  Prefactor     1.2223        .17230       -.62575E-08   -.10671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.6367
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9028
  Prefactor  = 1.10255
  Prefactor  = 11.537
  Prefactor  = 1.74094
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2655
  Prefactor  = 0.529532
  Prefactor  = 3.53106
  Prefactor  = 23.0295
  Prefactor  = 0.0001
  Normalizat = 0.90149
  Prefactor  = 1.22233
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.697     FROM HESSE     STATUS=OK           295 CALLS     2340 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.637        22.619        .92776E-04   -1.4844    
   3  norm          .10000E-03    .46748        .54244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2405        3.9248        .12191E-03   -1.5208    
   6  Prefactor     .10000E-03    9.5903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.903        30.528        .10376E-03   -1.4936    
   9  Prefactor     1.1026        3.6281        .27589E-03   -1.5498    
  10  Prefactor     11.537        11.272        .11794E-03   -1.5029    
  11  Prefactor     1.7409        2.7849        .16137E-03   -1.5444    
  12  norm          .10000E-03    9.5805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9619        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2655        146.36        .27226E-03   -1.5407    
  15  Prefactor     .52953        6.1363        .37901E-03   -1.5562    
  16  Prefactor     3.5311        101.80        .21474E-03   -1.5332    
  17  Prefactor     23.030        9.0136        .83466E-04   -1.4748    
  18  Prefactor     .10000E-03    1.4840        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90149        .20732        .26220E-03   -.96408    
  20  Prefactor     1.2223        .20415        .23655E-03   -.85647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59403e-10
Minuit parameter uncertainties:
  1  5.50918e-05
  2  22.6295
  3  3.24468e-08
  4  8.55196e-05
  5  3.925
  6  5.93109e-05
  7  0.000144049
  8  30.5605
  9  3.62885
  10  11.2736
  11  2.78511
  12  4.51625e-05
  13  1.59526e-05
  14  36.5117
  15  3.60533
  16  37.9896
  17  9.01415
  18  4.55661e-06
  19  0.207508
  20  0.204287
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.103e+00  3.629e+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.222e+00  2.043e-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.015e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/582966/likelihoodResults_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6625.32574967
delta logL = 0.371472544765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6625.28944713
delta logL = 0.407775078863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7042       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5634       1.0000          .0000       10.000    
     3 'Normalizat'    .91039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2126       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=   6625.289     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7033        2.5134        .80538E-02    .60271E-03
   2  Index         1.5616        .50829        .29124       -.13435E-03
   3  Normalizat    .91058        .16479        .45034E-01   -.11626E-03
   4  Prefactor     1.2124        .17094        .53653E-01    .16852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70326
  Index      = 1.56162
  Normalizat = 0.91058
  Prefactor  = 1.21245
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.289     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7033        2.9305        .15259E-03   -1.5447    
   2  Index         1.5616        .79770        .11137E-01   -.75828    
   3  Normalizat    .91058        .19478        .26099E-03   -.96089    
   4  Prefactor     1.2124        .20208        .23722E-03   -.85949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7882e-10
Minuit parameter uncertainties:
  1  2.93071
  2  0.804266
  3  0.194928
  4  0.20221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582966': 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) = 6625.28944376
delta logL = 0.40777845019

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.212e+00  2.022e-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.106e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/582966/cmap_HighResolution_440985601_441244801_4FGL_J0956.7+2516_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-01 06:22:50.382113', job_id='582966', GAL2='1.21', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1630502570.38', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='4.08e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='778' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 582966: <4FGL_J0956.7+2516_daily_bin778> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin778 149.176 25.2817 440985601 441244801 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 :                                   603.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            721 sec.

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

